What is the scope of static variables in c language?
Answer / dhanshri chabukswar
in c language the scope of a static variable depends on where it is declared
void func(){
static int x=0;
x++;
printf("%d",x);
}
scope - is x
out put- 123 if you call func()three times
| Is This Answer Correct ? | 0 Yes | 0 No |
c program to manipulate x=1!+2!+3!+...+n! using recursion
What is keyword in c?
Explain how can I write functions that take a variable number of arguments?
how can i calculate mean,median,mode by using c program
Which sorting algorithm is the best?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
What is the use of getchar() function?
Program to find the sum of digits of a given number until the sum becomes a single digit
Design a program using an array that lists even numbers and odd numbers separately from the 12 numbers supplied by a user.
What are the advantages of using linked list for tree construction?
wt is d full form of c