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 |
how many processes will gate created execution of -------- fork(); fork(); fork(); -------- Please Explain... Thanks in advance..!
#include<stdio.h> main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s=malloc(sizeof(struct xx)); printf("%d",s->x); printf("%s",s->name); }
write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .
plz send me all data structure related programs
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); }
main() { int i = 258; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }
print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!
35 Answers Tata Elxsi, TCS, VI eTrans,
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
Write a program to check whether the number is prime and also check if it there i n fibonacci series, then return true otherwise return false
Is this code legal? int *ptr; ptr = (int *) 0x400;
main() { int i = 3; for (;i++=0;) printf(ā%dā,i); }