What is the output of the following progarm?
#include<stdio.h>
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
Answer Posted / kalyan chukka
A.24
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
How do I get an accurate error status return from system on ms-dos?
What is conio h in c?
What is the difference between single charater constant and string constant?
Which programming language is best for getting job 2020?
What does %d do?
What is d scanf?
In a switch statement, explain what will happen if a break statement is omitted?
How many loops are there in c?
What does calloc stand for?
What is %d called in c?
What is #define size in c?
Which driver is a pure java driver
How reliable are floating-point comparisons?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer