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

Answer Posted / anurag aggarwal

after declaring the header files declare the global
variables to be used that is the best way.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the scope of global variable in c?

551


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

974


What is the difference between union and structure in c?

569


What are the standard predefined macros?

631


find the sum of two matrices and WAP for it.

628






How can I change the size of the dynamically allocated array?

630


What is a buffer in c?

572


What is a structure and why it is used?

618


What is stack in c?

609


What is infinite loop?

624


What are the 5 types of organizational structures?

546


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

598


Why can't I perform arithmetic on a void* pointer?

635


Can include files be nested?

627


Write a program to check whether a number is prime or not using c?

572