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 are dangling pointers? How are dangling pointers different from memory leaks?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What is an lvalue in c?
Can stdout be forced to print somewhere other than the screen?
How can I change the size of the dynamically allocated array?
Write a program to find factorial of a number using recursive function.
What does return 1 means in c?
How can I do peek and poke in c?
Why is c used in embedded systems?
Describe the header file and its usage in c programming?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Explain what are the different file extensions involved when programming in c?
What are the advantages of Macro over function?
Explain how can I read and write comma-delimited text?
What is difference between static and global variable in c?