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

Answer Posted / sathish

before the main

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between functions getch() and getche()?

629


How to get string length of given string in c?

618


Can you tell me how to check whether a linked list is circular?

783


When should the register modifier be used? Does it really help?

626


What is a file descriptor in c?

572






Explain the use of #pragma exit?

709


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

730


Can main () be called recursively?

638


What is static identifier?

710


List the different types of c tokens?

631


Is null valid for pointers to functions?

618


Which is the memory area not included in C program? give the reason

1513


Explain what is gets() function?

641


What is the use of printf() and scanf() functions?

640


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

786