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 / vijay r15
error undefined
function fork and wait
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Is it acceptable to declare/define a variable in a c header?
What are qualifiers and modifiers c?
How can you avoid including a header more than once?
What does calloc stand for?
What does %p mean c?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What is the method to save data in stack data structure type?
What is the benefit of using const for declaring constants?
What is structure padding and packing in c?
How can I read a binary data file properly?
What are the types of functions in c?
Which is better pointer or array?
Explain high-order and low-order bytes.
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
What is operator precedence?