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

according to my compailer it will have an error "function
called incorrectly"

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

824


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

753


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

1518


How can variables be characterized?

1652


What is restrict keyword in c?

645






Write a program with dynamically allocation of variable.

604


How will you find a duplicate number in a array without negating the nos ?

1648


Why does not c have an exponentiation operator?

629


Tell us the use of fflush() function in c language?

639


How can I recover the file name given an open stream?

556


What are the types of type qualifiers in c?

650


explain what is fifo?

634


Is stack a keyword in c?

637


How #define works?

617


Explain what is the heap?

622