Study the code:
void show()
main()
{
show();
}
void show (char *s)
{
printf("%sn",s);
}
What will happen if it is compiled & run on an ANSI C
Compiler?
A)It will compile & nothing will be printed when it is
executed
B)it will compile but not link
C)the compiler will generate an error
D)the compiler will generate a warning
Answer Posted / subbu[iit kgp]
if it is assumed that there is a semicolon after the
function prototype declaration of show(), then answer is A.
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is the use of clrscr?
How do you define a function?
How can I find the modification date of a file?
What are the different categories of functions in c?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What is a nested loop?
program for reversing a selected line word by word when multiple lines are given without using strrev
Explain how do you list files in a directory?
will u please send me the placement papers to my mail???????????????????
Hai what is the different types of versions and their differences
Why main is not a keyword in c?
What are enums in c?
Is there any data type in c with variable size?
How can you read a directory in a C program?
Explain the difference between malloc() and calloc() in c?