what is the difference between global variable & static
variable declared out side all the function in the file.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ashwinishaligram308
global variableis allocated on heap and static variables on
stack
| Is This Answer Correct ? | 2 Yes | 11 No |
change to postfix a/(b+c*d-e)
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
Why string is used in c?
Do you know the difference between exit() and _exit() function in c?
What is structure and union in c?
what is ram?
What is getch c?
How do you initialize function pointers? Give an example?
What is the argument of a function in c?
What is volatile, register definition in C
What is a dynamic array in c?
what is c programing