Q1. prepare down a recursive function to compute the factorial of an integer.
Q2. describe 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. prepare down a C function that returns the square of 3 integers sent by the main program.
Q6. prepare down a detail note on the black box testing.
Q7. prepare down a C function to reverse the digits of the integer.