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
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?
Why doesnt this code work?
What is difference between union All statement and Union?
What is spark map function?
What is the value of c?
Why we use int main and void main?
which type of aspect you want from the student.
Write a program to check armstrong number in c?
Why can’t constant values be used to define an array’s initial size?
Can we assign integer value to char in c?
What is function definition in c?
What are the data types present in c?
Can include files be nested? How many levels deep can include files be nested?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
What are the types of macro formats?