What does static mean in c?
Answer / sasi
Whenever Static is used with a Variable declaration .. it defines that the last updated value of the Variable will not be deleted after the process of a program .
Eg : #include <stdio.h>
int main() {
func();
func();
func();
}
void func() {
static int i=2;
i=i+1;
printf("%d
",i);
return 0;
}
Output :
3
4
5
| Is This Answer Correct ? | 0 Yes | 0 No |
where do we use structure pointer?
related proverb of "dont count your chicken before it hatches"
What language is c written?
write a c program that prints all multiples of 3between 1 and 50.
what is mean by Garbage collection ? Please answer me. Advance thanks.
What's the total generic pointer type?
What are compound statements?
what type of language is C?
All technical questions
give an example of type casting by a simple c program
write a program to swap two variables a=5 , b= 10 without using third variable
Why is void main used?