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


Please Help Members By Posting Answers For Below Questions

how to count no of words,characters,lines in a paragraph.

3899


What is a 'null pointer assignment' error?

722


What is identifiers in c with examples?

675


what is use of malloc and calloc?

1380


Why c is a procedural language?

579






In C programming, what command or code can be used to determine if a number of odd or even?

618


Why doesnt the call scanf work?

665


Tell me what is the purpose of 'register' keyword in c language?

614


What is difference between stdio h and conio h?

880


Create a simple code fragment that will swap the values of two variables num1 and num2.

804


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?

658


How can I invoke another program or command and trap its output?

610


What is abstract data structure in c?

524


What is a null pointer in c?

591


Can you write a programmer for FACTORIAL using recursion?

608