What is the difference between static and global variables?



What is the difference between static and global variables?..

Answer / kush joshi

static variable only can access within a function where
these declared, but the global variables access any where in
the program.

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More C Interview Questions

Write a program to implement queue.

0 Answers   Aricent,


how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......

10 Answers   Infosys,


What is the use of ?: Operator?

0 Answers  


write c program to display output 10(10+20)+(10+20+30)+ ... n term

0 Answers   Hindustan Gum Chemicals,


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers  






Is python a c language?

0 Answers  


WHAT IS LOW LEVEL LANGUAGE?

2 Answers  


Differentiate between ordinary variable and pointer in c.

0 Answers  


Would you rather wait for the results of a quicksort, a linear search, or a bubble sort on a 200000 element array? 1) Quicksort 2) Linear Search 3) Bubble Sort

3 Answers  


What is a example of a variable?

0 Answers  


Explain what is wrong with this program statement? Void = 10;

0 Answers  


List the different types of c tokens?

0 Answers  


Categories