Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the output of the following progarm?

output progarm
0
Posted

What is the output of the following progarm?

0

#include main( ) { int x,y=10; x=4; y=fact(x); printf(“%d\n”,y); } unsigned int fact(int x) { return(x*fact(x-1)); } A. 24 B. 10 C. 4 D. none 4. Consider the following C program and chose collect answer #include void main( ) { inta[10],k; for(k=0;k<10;k++) { a[k]=k; } printf ("%d\n",k); } A. value of k is undefined ; unpredictable answer B. 10 C. program terminates with run time error D. 0 5. Consider the prog and select answer #include void main ( ) { int k=4,j=0: switch (k) { case 3; j=300; case 4: j=400: case 5: j=500; } printf ("%d\n",j); } A. 300 B. 400 C. 500 D. 0 6. Consider the following statements: Statement 1 A union is an object consisting of a sequence of named members of various types Statement 2 A structure is a object that contains at different times, any one of the several members of various types Statement 3 C is a compiled as well as an interpretted language Statement 4 It is impossible to declare a structure or union containing an instance of itself A. all the statem

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123