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 / kracekumar
01010101010101
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can an array be an Ivalue?
What is the use of sizeof () in c?
What is unary operator?
Differentiate between calloc and malloc.
Is it possible to use curly brackets ({}) to enclose single line code in c program?
Here is a good puzzle: how do you write a program which produces its own source code as output?
How many data structures are there in c?
What does void main () mean?
What is derived datatype in c?
Differentiate between a structure and a union.
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
Explain how do you view the path?
Can stdout be forced to print somewhere other than the screen?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.