...
August 28, 2024

Pointers

Question 16 Assume that float takes 4 bytes, predict the output of following program. #include int main() { float arr[5]={12.5,10.0,13.5,90.5,0.5}; float *ptr1=&arr[0]; float *ptr2=ptr1+3; printf(“%f”,*ptr2); printf(“%d”,ptr2-ptr1); […]
August 29, 2024

Functions

Question 65 Which of the following is the correct value returned to the operating system upon the successful completion of a program ? A 0 B […]
August 29, 2024

Functions

Question 56 In the following C language function, Iet n ≥ m. How many recursive calls are made by this function ? int gcd(n,n) { if(n%m […]
August 29, 2024

Functions

Question 52 Consider the following function definition. void greet (int n) { if (n>0) { printf(“hello”); greet(n-1); } printf(“world”); } If you run greet(n) for some […]