Consider the following function definition.
- int f (int x, int y){
- for (int i=0 ; i<y ; i++ ) {
- x= x + x + y;
- }
- return x;
- }
Which of the following statements is/are TRUE about the above function?
Practise real GATE CSE Programming in C previous year questions from 1989–2026. Attempt questions, check your answers and learn with the stored explanations.
Answer at least one question to submit.
Sign in to send feedback (it takes under a minute), or create a free account.
Programming in C has 8 analysed topics in the GateIQ archive. The ones that have appeared most often in GATE CSE are Programming In C, Pointers, Recursion.
8 of them are rated high or very high value by the same transparent frequency, recurrence, recentness and solvability weighting used across the archive.
The practice set draws on 99 GATE CSE questions from 31 papers between 1989–2026. 99 of them carry a verified worked solution, shown after you submit.
Number of GATE CSE Programming in C questions in each paper.
Create a free account to keep your practice history, see where you are weak and continue where you left off.