what is the difference between global variable & static
variable declared out side all the function in the file.
Answer Posted / vishnu
Both the variables are stored in data segment but difference
is in accessing the variable. Global variables can be
accessed though out the project (if multiple files exists)
whereas static variable accessed within the file where its
declared.
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
What is union in c?
Can main () be called recursively?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What are the advantages of using linked list for tree construction?
Is void a keyword in c?
Explain what are multidimensional arrays?
What would be an example of a structure analogous to structure c?
What do you understand by friend-functions? How are they used?
What does typedef struct mean?
Explain the difference between structs and unions in c?
What is the general form of a C program?
List the different types of c tokens?
What is the size of a union variable?
find out largest elemant of diagonalmatrix
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM