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

Can I initialize unions?

701


How to declare pointer variables?

782


Is fortran faster than c?

683


What is f'n in math?

712


What are pointers? Why are they used?

714






What is a substring in c?

675


Do you know the difference between exit() and _exit() function in c?

698


what is the structure pointer?

1728


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

719


Is there any demerits of using pointer?

710


What is function definition in c?

676


What does #pragma once mean?

783


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

753


What was noalias and what ever happened to it?

689


explain what is fifo?

724