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 sizeof return in c?

624


Write a program to print fibonacci series using recursion?

596


How are pointers declared in c?

603


Give the rules for variable declaration?

685


What is wrong with this program statement?

612






What is the 'named constructor idiom'?

647


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

2620


Explain can the sizeof operator be used to tell the size of an array passed to a function?

601


What are operators in c?

591


What are the application of c?

655


What is void c?

575


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1895


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

616


How was c created?

597


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

662