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
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.
Can the sizeof operator be used to tell the size of an array passed to a function?
What is the general form of a C program?
Why & is used in c?
Why is c faster?
What is a constant?
What does malloc () calloc () realloc () free () do?
What does %p mean c?
Function calling procedures? and their differences? Why should one go for Call by Reference?
What is #line in c?
What is the use of #define preprocessor in c?
What are lookup tables in c?
Explain how can type-insensitive macros be created?
can any one tel me wt is the question pattern for NIC exam
Why static is used in c?