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 / narendra vemuri
: error C2065: 'main' : undeclared identifier
: error C2143: syntax error : missing ';' before '}'
: warning C4508: 'exp' : function should return a value;
'void' return type assumed
: error C2373: 'main' : redefinition; different type modifiers
: warning C4508: 'main' : function should return a value;
'void' return type assumed
Error executing cl.exe.
test.exe - 3 error(s), 2 warning(s)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can I get the current date or time of day in a c program?
When should you use a type cast?
Differentiate between new and malloc(), delete and free() ?
What are multibyte characters?
Explain how do you print only part of a string?
What is a example of a variable?
Explain how does free() know explain how much memory to release?
What is difference between union All statement and Union?
Can you please explain the difference between syntax vs logical error?
How macro execution is faster than function ?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
How can I open a file so that other programs can update it at the same time?
What is the use of putchar function?
What does return 1 means in c?
What are the properties of union in c?