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 / anbu sankar
Always i value is zero.
This program comes under recusive concept.
In stack memory,always remaining statement address [(i.e)
after main]is stored.
so at one stage stack is filled by addresses. so
Segmentation falut...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are operators in c?
What functions are in conio h?
Can a pointer be volatile in c?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
What functions are used in dynamic memory allocation in c?
What is the general form of function in c?
Write a program to swap two numbers without using third variable in c?
code for find determinent of amatrix
What is const keyword in c?
How many types of arrays are there in c?
What is the correct declaration of main?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
Explain data types & how many data types supported by c?
Write a program which returns the first non repetitive character in the string?