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 / sireesha
54321
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is data types?
Does c have enums?
if p is a string contained in a string?
What are disadvantages of C language.
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
What is void main ()?
What does %d do in c?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is the difference between array_name and &array_name?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What does void main return?
How can a program be made to print the name of a source file where an error occurs?
What is the right way to use errno?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
What are the three constants used in c?