“break;” out of “if” statement??

Can you break out of an if statement or is it going to cause crashes? I'm starting to acquaint myself with C, but th...

Initializing entire 2D array with one value?

With the following declaration int array[ROW][COLUMN]={0}; I get the array with all zeroes but with the followin...

How to compile and run C/C++ in a Unix console/Mac terminal??

How can I compile/run C or C++ in Unix console or a Mac terminal? (I know it, forget it, and relearn it again. Time...

How many bytes do pointers take up??

I am little bit confused about pointers and how many bytes they take up. In my textbook it first says that pointers ...

Arrays passed by reference by default??

I'm reading a C++ book which says this: C++ passes arrays to functions by reference—the called functions can m...

ffmpeg.c what are pts and dts ? what does this code block do in ffmpeg.c??

In simple terms what are pts and dts values? Why are they important while transcoding [decode-encode] videos ? Wh...

Arrays in C: Function which shows whether or not an array contains a certain element?

so this is the first question ive ever done involving arrays and im a bit confused. The question we are given is: W...

How to return a value from pthread threads in C??

I'am new to C and would like to play with threads a bit. I would like to return some value from a thread using pthre...

Casting a pointer to an int?

I am writing my own functions for malloc and free in C for an assignment. I need to take advantage of the C sbrk() w...

Reading integers from a text file in C line by line and storing them in an array?

I am new to C and have been trying to do this for a while now. I need to read the integer values from a text file t...

How can I know the version of c??

The "\b" didn't work on my Mac. So i tried to find the reason. I think that cause of this problem may be the versio...

how repeat a string in language C?

how I do to repeat a string? something like "hello world" * 3 the output "hello world hello world hello world" ...

c pointer to array of structs?

I know this question has been asked a lot, but I'm still unclear how to access the structs. I want to make a global...