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 / subbu[iit kgp]
if it is assumed that there is a semicolon after the
function prototype declaration of show(), then answer is A.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What is size of union in c?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
Hi can anyone tell what is a start up code?
What are variables and it what way is it different from constants?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
how to build a exercise findig min number of e heap with list imlemented?
Explain how can you be sure that a program follows the ansi c standard?
What is the sizeof () a pointer?
What is malloc return c?
How can type-insensitive macros be created?
Compare array data type to pointer data type
Explain what are reserved words?
Is c programming hard?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }