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 the different bitween abap and abap-hr?
What is the general form of function in c?
How to establish connection with oracle database software from c language?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
Write a Program to find whether the given number or string is palindrome.
List some applications of c programming language?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What do you mean by scope of a variable in c?
What are Macros? What are its advantages and disadvantages?
What are linked lists in c?
Can you write the function prototype, definition and mention the other requirements.
What is difference between class and structure?
Explain what are the standard predefined macros?
Why is c known as a mother language?
What is calloc()?