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
Explain what is wrong with this statement? Myname = ?robin?;
What are the valid places to have keyword “break”?
int i=10; printf("%d %d %d", i, i=20, i);
What is masking?
How can you increase the size of a statically allocated array?
Write a C program to count the number of email on text
What does %d do in c?
Describe dynamic data structure in c programming language?
write a program for the normal snake games find in most of the mobiles.
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
Are the variables argc and argv are local to main?
How many identifiers are there in c?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
What is the purpose of scanf() and printf() functions?
What are the main characteristics of c language describe the structure of ac program?