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

how to build a exercise findig min number of e heap with list imlemented?

1613


Explain what happens if you free a pointer twice?

614


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

651


What are header files in c?

618


Explain the difference between the local variable and global variable in c?

605






How can I automatically locate a programs configuration files in the same directory as the executable?

632


Disadvantages of C language.

663


What are directives in c?

549


What is a pointer in c?

684


Why is c called a mid-level programming language?

729


What are header files? What are their uses?

640


What is the difference between %d and %i?

596


What is a method in c?

629


explain what are pointers?

619


Sir i need notes for structure,functions,pointers in c language can you help me please

1947