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


Please Help Members By Posting Answers For Below Questions

Write the control statements in C language

739


What is table lookup in c?

725


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

780


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

772


how to write a c program to print list of fruits in alpabetical order?

1922






What is strcpy() function?

761


Why static variable is used in c?

656


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

863


Explain how can I right-justify a string?

714


Write a program of advanced Fibonacci series.

797


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

760


What is adt in c programming?

722


Explain what is the best way to comment out a section of code that contains comments?

813


Explain enumerated types.

685


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1554