What's the best way to declare and define global variables?
Answer Posted / guest
The best arrangement is to place each definition in some
relevant .c file, with an external declaration in a header file.
| Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
What is the difference between near, far and huge pointers?
What is meant by initialization and how we initialize a variable?
What is substring in c?
What is auto keyword in c?
explain what is a newline escape sequence?
What is union in c?
Is c is a procedural language?
What is wrong with this initialization?
Can a file other than a .h file be included with #include?
what are bit fields? What is the use of bit fields in a structure declaration?
What are the modifiers available in c programming language?
difference between native and cross compilers
Explain how do you convert strings to numbers in c?
Why do we use & in c?
What is a global variable in c?