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 are the types of data structures in c?
What are extern variables in c?
Can a variable be both const and volatile?
What is the use of #include in c?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
How can you increase the size of a statically allocated array?
Differentiate fundamental data types and derived data types in C.
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is a floating point in c?
What does %c do in c?
Can I initialize unions?
Differentiate between declaring a variable and defining a variable?
How do I send escape sequences to control a terminal or other device?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
What is the difference between a string and an array?