...
October 18, 2024

Functions

Question 17 The time complexity of the following C function is (assume n>0) int recursive (int n) { if (n==1) return(1); else return(recursive (n-1) + recursive(n-1)); […]
October 18, 2024

Functions

Question 18 int function (int x, int y) { if(y<=0) return x; return function (y, x%y); } The above recursive function computes ______ A GCD of […]
October 25, 2024

GATE-2024-CS1(Forenoon)

Question 19 Consider the following C program: Assume that the input to the program from the command line is 1234 followed by a newline character. Which […]
November 13, 2024

UGC NET CS 2008-june-Paper-2

Question 11 What is the effect of the following C code ? for(int i=1; i≤5; i=i+½)          printf(“%d,”,i); A It prints 1, 1.5, 2, 2.5, 3, 3.5, […]