main()
{
static int var = 5;
printf("%d ",var--);
if(var)
main();
}
Answer / susie
Answer :
5 4 3 2 1
Explanation:
When static storage class is given, it is
initialized once. The change in the value of a static
variable is retained even between the function calls. Main
is also treated like any other ordinary function, which can
be called recursively.
| Is This Answer Correct ? | 50 Yes | 22 No |
What is the hidden bug with the following statement? assert(val++ != 0);
How do you sort a Linked List (singly connected) in O(n) please mail to pawan.10k@gmail.com if u can find an anser...i m desperate to knw...
6 Answers Microsoft, MSD, Oracle,
What is data _null_? ,Explain with code when u need to use it in data step programming ?
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
#include<stdio.h> main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; }
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; } a. Runtime error. b. Runtime error. Access violation. c. Compile error. Illegal syntax d. None of the above
plz send me all data structure related programs
main() { int i=5,j=6,z; printf("%d",i+++j); }
#include"math.h" void main() { printf("Hi everybody"); } if <stdio.h> will be included then this program will must compile, but as we know that when we include a header file in "" then any system defined function find its defination from all the directrives. So is this code of segment will compile? If no then why?
‎#define good bad main() { int good=1; int bad=0; printf ("good is:%d",good); }
void main() { int i=5; printf("%d",i++ + ++i); }