Recursive function to compute the factorial


Q1. Write down a recursive function to compute the factorial of an integer.

Q2. Explain how is union differing from a structure in ‘C’? Describe giving appropriate illustrations.

Q3. Let consider the given macro definition:

#define root (a, b) sqrt((a) * (a) + (b) * (b))

Determine the result of the given macro call statement?

root(a++, b++) if a = 3 and b = 4

Q4. Find out the output of the given program segment?

sum = 0;
i = 1;
while(i <= 10)
sum += i++;
printf(“%d”, i);

Q5. Write down a C function that returns the square of 3 integers sent by the main program.

Q6. Write down a detail note on the black box testing.

Q7. Write down a C function to reverse the digits of the integer. 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Recursive function to compute the factorial
Reference No:- TGS011585

Expected delivery within 24 Hours