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 to count no of words,characters,lines in a paragraph.
What is a 'null pointer assignment' error?
What is identifiers in c with examples?
what is use of malloc and calloc?
Why c is a procedural language?
In C programming, what command or code can be used to determine if a number of odd or even?
Why doesnt the call scanf work?
Tell me what is the purpose of 'register' keyword in c language?
What is difference between stdio h and conio h?
Create a simple code fragment that will swap the values of two variables num1 and num2.
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
How can I invoke another program or command and trap its output?
What is abstract data structure in c?
What is a null pointer in c?
Can you write a programmer for FACTORIAL using recursion?