What's the best way to declare and define global variables?
Answer Posted / karnik ankit
the best way to declare and define global variables after
the header files or before the main function.
Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
Do you know the difference between malloc() and calloc() function?
What is an auto keyword in c?
Which of these functions is safer to use : fgets(), gets()? Why?
If I have a char * variable pointing to the name of a function ..
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
Can you please explain the scope of static variables?
Explain is it better to bitshift a value than to multiply by 2?
What is #include conio h?
how we can make 3d venturing graphics on outer interface
Why is python slower than c?
What is line in c preprocessor?
Differentiate between functions getch() and getche().
Where are local variables stored in c?
What is the difference between formatted&unformatted i/o functions?
List the difference between a While & Do While loops?