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
Explain what is gets() function?
What are linked lists in c?
Write a program to print "hello world" without using a semicolon?
write a c program for swapping two strings using pointer
What is the code for 3 questions and answer check in VisualBasic.Net?
What is wild pointer in c?
What is the -> in c?
What is the difference between fread and fwrite function?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
#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); }
Which built-in library function can be used to match a patter from the string?
What is the use of in c?
How is a structure member accessed?
Differentiate between declaring a variable and defining a variable?
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.