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
Write the control statements in C language
What is table lookup in c?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
how to write a c program to print list of fruits in alpabetical order?
What is strcpy() function?
Why static variable is used in c?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
Explain how can I right-justify a string?
Write a program of advanced Fibonacci series.
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
What is adt in c programming?
Explain what is the best way to comment out a section of code that contains comments?
Explain enumerated types.
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me