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
Can you explain the four storage classes in C?
What is c language used for?
In C, What is the #line used for?
Explain how can you determine the size of an allocated portion of memory?
What is a global variable in c?
Explain how do you view the path?
what is uses of .net
How do I use strcmp?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
How can I recover the file name given an open stream?
What is putchar() function?
What is use of pointer?
What are the types of data files?
What is the default value of local and global variables in c?
What is the size of array float a(10)?