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
Why C language is a procedural language?
How can I find out if there are characters available for reading?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
What is variable in c example?
What is 2 d array in c?
What is a static function in c?
Write a program to check whether a number is prime or not using c?
What is the use of c language in real life?
What is typedef struct in c?
Define recursion in c.
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
What are variables and it what way is it different from constants?
#include
What will be your course of action for a push operation?
Difference between macros and inline functions? Can a function be forced as inline?