what is the diff b/w static and non static variables in C.
Give some examples plz.
Answer Posted / parth ujenia
main()
{
int i=5;
while(i!=0)
{
printf("%d",i--);
main();
}
getch();
}
output: 54321
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
how to capitalise first letter of each word in a given string?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
Difference between pass by reference and pass by value?
What are categories used for in c?
Differentiate between full, complete & perfect binary trees.
What is a structural principle?
Where is volatile variable stored?
Does * p ++ increment p or what it points to?
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
Write a program for finding factorial of a number.
Can the “if” function be used in comparing strings?
what is different between auto and local static? why should we use local static?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
Explain what is the difference between functions getch() and getche()?
Write a program to print "hello world" without using a semicolon?