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 / manjeet

The compiler will generate an error because the is no ";"
semicolon after the prototype declaration of show function

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is gets() function?

633


What are linked lists in c?

651


Write a program to print "hello world" without using a semicolon?

597


write a c program for swapping two strings using pointer

2094


What is the code for 3 questions and answer check in VisualBasic.Net?

1691






What is wild pointer in c?

609


What is the -> in c?

585


What is the difference between fread and fwrite function?

640


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

1906


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

720


Which built-in library function can be used to match a patter from the string?

747


What is the use of in c?

578


How is a structure member accessed?

585


Differentiate between declaring a variable and defining a variable?

607


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1522