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

In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2688


Can the sizeof operator be used to tell the size of an array passed to a function?

624


What is the general form of a C program?

602


Why & is used in c?

723


Why is c faster?

596






What is a constant?

637


What does malloc () calloc () realloc () free () do?

565


What does %p mean c?

634


Function calling procedures? and their differences? Why should one go for Call by Reference?

639


What is #line in c?

567


What is the use of #define preprocessor in c?

623


What are lookup tables in c?

552


Explain how can type-insensitive macros be created?

579


can any one tel me wt is the question pattern for NIC exam

1562


Why static is used in c?

627