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
Why do we need arrays in c?
Differentiate abs() function from fabs() function.
What do you mean by a local block?
How to implement a packet in C
What does %d do in c?
What’s the special use of UNIONS?
How many levels of pointers have?
What is an identifier?
Can the size of an array be declared at runtime?
How many levels of indirection in pointers can you have in a single declaration?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
How can I write a function that takes a format string and a variable number of arguments?
What is type qualifiers?
What is a static variable in c?
What is array of pointers to string?