What's the best way to declare and define global variables?

Answer Posted / vignesh1988i

as for C is concerned the best way to declare and define the
global variable is brefore the main() function

Is This Answer Correct ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what is null pointer in c?

687


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

1943


using for loop sum 2 number of any 4 digit number in c language

1852


What is the difference between fread and fwrite function?

718


What is the difference between exit() and _exit() function?

683






Write a program to identify if a given binary tree is balanced or not.

786


What is #ifdef ? What is its application?

737


Write a program to check palindrome number in c programming?

691


What is console in c language?

713


What is the use of the function in c?

694


What is a pragma?

760


Explain about block scope in c?

754


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1609


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1408


Explain the difference between call by value and call by reference in c language?

753