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
int i=10; printf("%d %d %d", i, i=20, i);
What does %d do?
Can you write the algorithm for Queue?
How can you find out how much memory is available?
What is preprocessor with example?
What is c language & why it is used?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
What is the maximum length of an identifier?
What does a pointer variable always consist of?
How many bytes are occupied by near, far and huge pointers (dos)?
What is the deal on sprintf_s return value?
What is the size of enum in c?
What is the usage of the pointer in c?
Is c still relevant?
What 'lex' does?