What is the output of the below program and how it is?
void main()
{
static int var=5;
printf("%d",var--);
if(var)
main();
}
Answer Posted / anuj awasthi
above the program output is = 54321
| Is This Answer Correct ? | 18 Yes | 5 No |
Post New Answer View All Answers
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
how should functions be apportioned among source files?
What is d'n in c?
What is the purpose of scanf() and printf() functions?
What is the difference between a function and a method in c?
Compare and contrast compilers from interpreters.
Can we declare a function inside a function in c?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
Write a program to print factorial of given number without using recursion?
Is printf a keyword?
hi send me sample aptitude papers of cts?