what is the output of the following program and explain the
answer
#include<stdio.h>
exp()
{
main(5)
}
main(int a)
{
printf("%d",a);
return;
}

Answer Posted / vignesh1988i

first of all this will give an error tat 'exp()' is not declared or it needs a prototype & if the 'exp()' is corrected and ';' is added in calling function of main(5) this will print as 5

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

599


Why doesnt this code work?

609


What is difference between union All statement and Union?

623


What is spark map function?

577


What is the value of c?

563






Why we use int main and void main?

533


which type of aspect you want from the student.

1695


Write a program to check armstrong number in c?

630


Why can’t constant values be used to define an array’s initial size?

824


Can we assign integer value to char in c?

609


What is function definition in c?

576


What are the data types present in c?

617


Can include files be nested? How many levels deep can include files be nested?

649


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

653


What are the types of macro formats?

597