How to fix runtime error: load of null pointer of type 'const char?
I need to write function which loads dictionary in hash table.I'm confused about error message: c:37:20 runtime erro...
My C program reads a text file. When I put it into Xcode it fails. What's happening??
I have a function that opens a .txt, uses fscanf to read numbers formatted like: 532 2 -234 32 etc. It successful...
meaning of (number) & (-number)?
What is the meaning of (number) & (-number)? I have searched it but was unable to find the meaning I want to u...
C - Read file and count rows and columns?
I am trying to make a function to read a file It should count the rows and columns Set the global variables to be t...
What do numbers using 0x notation mean??
What does a 0x prefix on a number mean? const int shared_segment_size = 0x6400; It's from a C program. I can't re...
What does it mean to return a value from a C program??
I'm very new to programming and confused about returning a value in the C language. int main() { printf("hallo ...
What is the fastest way to swap values in C??
I want to swap two integers, and I want to know which of these two implementations will be faster: The obvious way w...
Why are unused variables bad??
I would like to know why an unused variable is bad. Is it because the compiler would create a bigger binary? If yes...
What's the C library function to generate random string??
Is there a library function that creates a random string in the same way that mkstemp() creates a unique file name? ...
Is * equivalent to [] in C??
Would coding: char *argv[] would be the same as: char **argv Or would: char *string1; int *int_array; be e...
extern and global in c?
Can anyone please tell me is there any special requirement to use either EXTERN or GLOBAL variables in a C program? ...
Difference between “while” loop and “do while” loop?
What is the difference between while loop and do while loop. I used to think both are completely same.Then I came ac...
What does (int*) &var mean??
What is the meaning of (int*) &i? char i; int* p = (int*) &i; ... *p = 1234567892; ... If it wa...
Appending to CMAKE_C_FLAGS?
I'm using CMake for a project that comes in two versions, one of which requires -lglapi and the other does not. So...
What does *— notation do in C? [closed]?
Closed. Th...