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


Please Help Members By Posting Answers For Below Questions

What is the use of clrscr?

810


How do you define a function?

797


How can I find the modification date of a file?

970


What are the different categories of functions in c?

891


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(); }

2084


What is a nested loop?

884


program for reversing a selected line word by word when multiple lines are given without using strrev

2190


Explain how do you list files in a directory?

837


will u please send me the placement papers to my mail???????????????????

1634


Hai what is the different types of versions and their differences

1739


Why main is not a keyword in c?

925


What are enums in c?

861


Is there any data type in c with variable size?

870


How can you read a directory in a C program?

910


Explain the difference between malloc() and calloc() in c?

822