What is the output of the following program
#include<stdio.h>
main()
{
int i=0;
fork();
printf("%d",i++);
fork();
printf("%d",i++);
fork();
wait();
}
Answer Posted / vignesh1988i
01 finally i will have 2
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
List a few unconditional control statement in c.
What is the use of pointers in C?
When should a far pointer be used?
What kind of structure is a house?
Is Exception handling possible in c language?
define string ?
What is the correct code to have following output in c using nested for loop?
How many types of operator or there in c?
What are local static variables? How can you use them?
Why is #define used?
write a c program for swapping two strings using pointer
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
When is a void pointer used?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
What is memcpy() function?