MCQs > IT & Programming > C# > What will be the return value if the function fn is called with a value of 50 for the parameter var? public int fn(int var) {     int retvar = var - (var / 10 * 5);     return retvar; }

C# MCQs

What will be the return value if the function fn is called with a value of 50 for the parameter var?

public int fn(int var)

{

    int retvar = var - (var / 10 * 5);

    return retvar;

}

Answer

Correct Answer: 25

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it