ICSE Class 10 Computer Applications Question 19 of 43

User-Defined Methods — Question 19

Back to all questions
19
Question

Question 17

Write a function that takes an int argument and doubles it. The function does not return a value.

Answer
void doubleNum(int n)   {
    n = n + n;
}
Get the Bright Tutorials app Stuck on a question? Ask Bright Buddy — your AI tutor — for step-by-step help in the app.