what is diff between localstatic and globalstatis variable
possible 2 use in another file...?
Answers were Sorted based on User's Feedback
Answer / abdur rab
Local Static
============
The scope of the variable is only within the function where
it is declared, throughout the program. ie the value is
preserved until the end of the program.
Global Static
=============
The scope of the variable is only within the file where it
is declared, throughout the program. ie the value is
preserved until the end of the program.
Global Static variables are not visible outside the files
where they are declared.
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / guest
localstatic belong to that only that function .
globalestatic belong 2whole file. not possible.
| Is This Answer Correct ? | 6 Yes | 1 No |
what is the difference between 123 and 0123 in c?
Explain what is the general form of a c program?
What is meant by keywords in c?
Write a function in c to find the area of a triangle whose length of three sides is given.
what is difference between overriding and overloading?
why wipro wase
what is Array?
Is c object oriented?
Write a program to generate the first n terms in the series --- 9,11,20,31,...,82
String concatenation
What is character set?
what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,z; z=x-- -y; printf("\n%d %d %d",x,y,z); }