Computer Science, asked by BrainlyProgrammer, 2 months ago

[CS]

Q1) Predict the Output:-

int I,j;
for(int I=1;I<5;I++)
for(int j=1;j<i;j++)
if (j%2==0)
break;
else
Sopln("weldone");
i++;
Sopln("times :"+i);

//Sopln= System.out.println()


Q2) One word Answer...
>>Array passing is an example of (call by value of call by reference)
_
Thanks, Do not spam/copy other's answer.
:)​

Answers

Answered by ajb7899
0

Answer:

Ques 1 :- Output will be :-

weldone

times:2

weldone

times:4

Ques 2 :- Call By Reference

(Perhaps you have missed the bracket in else part) Hence the output would be as shown

Similar questions