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
Explain two-dimensional array.
Explain bit masking in c?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
What is the significance of an algorithm to C programming?
Tell me the use of bit field in c language?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
What does stand for?
difference between native and cross compilers
For what purpose null pointer used?
Explain what does the format %10.2 mean when included in a printf statement?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is void c?
Does c have enums?
What is the difference between struct and union in C?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?