void main()
{
static int i=5;
if(--i){
main();
printf("%d ",i);
}
}
Answer / susie
Answer :
0 0 0 0
Explanation:
The variable "I" is declared as static, hence memory for I
will be allocated for only once, as it encounters the
statement. The function main() will be called recursively
unless I becomes equal to 0, and since main() is recursively
called, so the value of static I ie., 0 will be printed
every time the control is returned.
| Is This Answer Correct ? | 4 Yes | 5 No |
Write a program that find and print how many odd numbers in a binary tree
Find the largest number in a binary tree
void main() { unsigned giveit=-1; int gotit; printf("%u ",++giveit); printf("%u \n",gotit=--giveit); }
#include<stdio.h> main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s; printf("%d",s->x); printf("%s",s->name); }
#define max 5 #define int arr1[max] main() { typedef char arr2[max]; arr1 list={0,1,2,3,4}; arr2 name="name"; printf("%d %s",list[0],name); }
Program to Delete an element from a doubly linked list.
4 Answers College School Exams Tests, Infosys,
What is data _null_? ,Explain with code when u need to use it in data step programming ?
main() { extern int i; i=20; printf("%d",i); }
# include <stdio.h> int one_d[]={1,2,3}; main() { int *ptr; ptr=one_d; ptr+=3; printf("%d",*ptr); }
main() { { unsigned int bit=256; printf("%d", bit); } { unsigned int bit=512; printf("%d", bit); } } a. 256, 256 b. 512, 512 c. 256, 512 d. Compile error
main() { int i = 3; for (;i++=0;) printf(ā%dā,i); }
String copy logic in one line.