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 variables are declared in c?
Define VARIABLE?
What is the general form of function in c?
What are pointers? What are different types of pointers?
what will be maximum number of comparisons when number of elements are given?
What is s in c?
What are the key features in c programming language?
What is the meaning of ?
What is void pointers in c?
What is array in C
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); } }
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?
c program for searching a student details among 10 student details
How many bytes is a struct in c?
What is %s and %d in c?