The output of the following code is:
int f(int a, int b); 
void main()
int a = 12, b=154;
printf("%d", f(a, b));
int f(int a, int b)
if (a<b) return(f(b, a));
if(b==0) return(a);
return (f(b, a % b));

A. 2

B. 1

C. Compilation error

D. Runtime error

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. All elements of a structure are allocated contiguous memory locations.
  2. The main() function can call itself recursively.
  3. Right shifting an operand 1bit is equivalent to multiplying it by 2.
  4. A multidimensional array A[10][9] can store-------- number of elements
  5. What is C Tokens?
  6. An array declared as A[100][100] can hold a maximum of 100 elements.
  7. Structures within structures cannot be created.
  8. ------ is the ternary operator
  9. Which one of the following is not a fundamental data type in C++
  10. The same variable names of automatic type can be used in different functions without any conflict.
  11. An array elements are always stored in _________ memory locations.
  12. The value of an enumerated datatype can be read using scanf() function.
  13. The output of the following code is:void main() {char a = 'B';switch (a) {case 'A' : printf("a"); case…
  14. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  15. Which of the following is a valid destructor of the class name "Country"
  16. The printf() function retunes which value when an error occurs?
  17. The size of signed integer is ------ bytes.
  18. What's wrong? for (int k = 2, k <=12, k++)
  19. When a user defined function is defined in program, then it has to be called at least once from the…
  20. printf("%d", sizeof('2')); will print 2.
  21. A C variable cannot start with
  22. Union is used to hold different data at different time.
  23. A declaration float a, b; occupies ___ of memory
  24. do-while loop is useful when we want the statements within the loop must be executed
  25. Nested macros are allowed.
  26. strcat() function ----------------------- two strings.
  27. Which escape character can be used to beep from speaker in C?
  28. What is the difference between overloaded functions and overridden functions?
  29. It is necessary to initialize the array at the time of declaration.
  30. What will be output if you will compile and execute the following c code? #include int main(){ int i=320;…