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
What is echo in c programming?
What are the advantage of c language?
Can you please explain the difference between strcpy() and memcpy() function?
What are the types of type specifiers?
What does the c in ctime mean?
What are the benefits of organizational structure?
What are reserved words?
What are the advantages and disadvantages of a heap?
What is the c value paradox and how is it explained?
Write a factorial program using C.
What are pointers? What are different types of pointers?
What is the newline escape sequence?
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
What are the difference between a free-standing and a hosted environment?
Can we change the value of constant variable in c?