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 / yogesh bansal
if we add semicolon after main(5) like ; main(5);
the ouput will be 1.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Is it better to use a macro or a function?
How many levels of pointers can you have?
Explain argument and its types.
What is external variable in c?
What is strcpy() function?
What is a 'null pointer assignment' error?
how do you programme Carrier Sense Multiple Access
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
How can I discover how many arguments a function was actually called with?
write a program to rearrange the array such way that all even elements should come first and next come odd
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
What are the 3 types of structures?
What is the difference between struct and union in C?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What is the ANSI C Standard?