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 |
What is action and transformation in spark?
Difference between strcpy() and memcpy() function?
write a program to print the all 4digits numbers & whose squares must me even numbers?
Can a local variable be volatile in c?
parkside's triangle.. create a program like this.. enter the size: 6 enter the seed: 1 output: 1 23 456 7891 23456 789123 sample2: enter the size: 5 enter the seed: 3 output: 3 45 678 9123 45678 parkside should not exceed 10 while its seed should only be not more than 9..
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
print out put like this form 1 2 3 4 5 6 3 5 7 9 11 8 12 16 20
What is the difference between CV and Resume ?
What is assignment operator?
Why are algorithms important in c program?
how to determine the complexity of an algorithm as log(n)
Tell us two differences between new () and malloc ()?