Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2024 Set 1
Questions

Q38

MSQ2 marksProgramming

Consider the following C\mathrm{C} 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?

Sign in to save attempts.

Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.