what is the difference between global variable & static
variable declared out side all the function in the file.
Answer Posted / ashwinishaligram308
global variableis allocated on heap and static variables on
stack
| Is This Answer Correct ? | 2 Yes | 11 No |
Post New Answer View All Answers
What is #include stdio h?
When would you use a pointer to a function?
What is a class c rental property?
What is difference between far and near pointers?
All technical questions
Do you know the use of 'auto' keyword?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
How can I find out how much free space is available on disk?
Why is it important to memset a variable, immediately after allocating memory to it ?
List the variables are used for writing doubly linked list program.
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
What is a function in c?
Is fortran still used today?
If the size of int data type is two bytes, what is the range of signed int data type?
Why can arithmetic operations not be performed on void pointers?