C is a general-purpose programming language used for system programming (OS and embedded), libraries, games and cross-platform.
Is it possible to set default values for some struct member? I tried the following but, it'd cause syntax error: …
c structI see variables defined with this type but I don't know where it comes from, nor what is its purpose. …
c++ c variablesFor example consider following code: int main(int argc,char *argv[]) { int *p,*q; p = (int *)malloc(sizeof(int)*10); q = (…
c return exitI'm new to this. Just wanted to ask how to compile a makefile. I am using MinGW compiler in C …
c compiler-construction makefile mingwHow can I easily generate random numbers following a normal distribution in C or C++? I don't want any use …
c++ c random distribution normal-distributionI want to write a function that returns the nearest next power of 2 number. For example if my input is 789, …
c optimization bit-manipulationI want to write a macro in C that accepts any number of parameters, not a specific number example: #define …
c g++ c-preprocessor variadicI wrote a function containing array as argument, and call it by passing value of array as follows. void arraytest(…
c arrays function parameters parameter-passing