## Discussion Forum

Que. | Consider the following C function:
int f(int n) { static int i = 1; if (n >= 5) return n; n = n+i; i++; return f(n); } The value returned by f(1) is |

a. | 5 |

b. | 6 |

c. | 7 |

d. | 8 |

Answer:7 |

Que. | Consider the following C function:
int f(int n) { static int i = 1; if (n >= 5) return n; n = n+i; i++; return f(n); } The value returned by f(1) is |

a. | 5 |

b. | 6 |

c. | 7 |

d. | 8 |

Answer:7 |

Questions from Previous year GATE question papers

UGC NET Previous year questions and practice sets

UGC NET Previous year questions and practice sets

Attempt a small test to analyze your preparation level. This GATE exam includes questions from previous year GATE papers.

Practice test for UGC NET Computer Science Paper. The questions asked in this NET practice paper are from various previous year papers.