Tagged Questions

C is a general-purpose computer programming language used for operating systems, libraries, games and other high performance work and is clearly distinct from C++. It was developed in 1972 by Dennis Ritchie for use with the Unix operating system.

I'm quite new to C programming and have just begun studying files. I'm wondering whether it is possible to read a file line by line (including spaces in each line) into an array of size equal to the ...

I have trouble using defined values in different files. I have a file named "flexsea.h" that contains definitions for the whole project (such as #define COMM_STR_BUF_LEN 48). Most of the files in my ...

Using command-line arguments, I ultimately am going to 'censor' a string from stdin by replacing each one word text string argument (argv[1], argv[2], .. ) with the word 'CENSORED', copying the new ...

Is it possible to display a black dot by changing values in the screen(video ie monitor) memory map in RAM using a c program?
I don't want to use any library functions as my primary aim is to learn ...

In the Linux kernel we have a sk_buff structure in the network stack from which we get the inode and from this inode we want to get the pid of the process that created the inode. There is a pid field ...

I am having trouble with correctly using a do-while loop to keep asking for another string if the one input is longer than what you want. After entering a string which is too big the program expects ...

Im new in #c programming and I was wondering if you could tell me bibliography where I can find solved problems(algorithms). I am a Math student and the majority of the programs we have to do are like ...

I have some simple source code where I just use some "C" functions and it works perfectly. When I add OpenCV C++ functions (I use qmake and make in order to avoid writing makefiles by myself) the code ...

I want to parallelize floyd warshall algorithm in c using openmp. Plz help me with the source code in c.I m having the sequential form of this algorithm and tried alot to parallelize but unable to do ...

The following code allows for a server to wait for a client to connect to a (already binded) socket.
It terminates either when a client connects to the socket, or when "server_run" takes the value 0: ...

I've installed the avr-gcc compiler and successfully convinced it to compile some test code through the terminal, so I thought I'd have a go at setting it up in code:blocks to make it a little easier ...

I am building software that runs locally on web browser. At first I was using C, but it was really hectic with HTML. So I decided to use Javascript. This requires saving data and saving texts in plain ...

I need a quick head start on the TDD with the C/C++.
I have never used any Unit Testing framework and I have a mess in my head.
How much of the code should be covered by tests in TDD?
What framework ...

So, I'm trying to create n identical arrays of the same size but with a slightly different name.
I cannot just define them individually as n depends on an input.
The only way I could think to do this ...