Is main() is used in the program,,see below example?
void main()
{
int i;
for(i=0;i<10;i++)
main();
}
Then what is the output of the program?
Answer Posted / sai
The given program is an infinite loop with no
output.Because it calls main() function with in the for
loop.
So the value of the i always '0' only.According to the for
loop condition the execution of the program goes false only
i>=10.Then when the condition in the for loop goes to false?
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which one would you prefer - a macro or a function?
What is anagram in c?
Why we use conio h in c?
Tell us the use of fflush() function in c language?
What is the difference between local variable and global variable in c?
What is static memory allocation?
What are valid operations on pointers?
How can I determine whether a machines byte order is big-endian or little-endian?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
Do you know the difference between exit() and _exit() function in c?
What is default value of global variable in c?
Explain what are the __date__ and __time__ preprocessor commands?
What is %g in c?
What is null pointer constant?