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 variables are declared in c?

565


Define VARIABLE?

684


What is the general form of function in c?

605


What are pointers? What are different types of pointers?

620


what will be maximum number of comparisons when number of elements are given?

1404






What is s in c?

600


What are the key features in c programming language?

602


What is the meaning of ?

604


What is void pointers in c?

578


What is array in C

697


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

1950


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?

651


c program for searching a student details among 10 student details

1646


How many bytes is a struct in c?

718


What is %s and %d in c?

585