what will be the result produced by the following if a=5 initially 5*a++;
Answers
Answered by
3
Answer:
25
Explanation:
Currently a's value is 5....
now.....5*a++;
//look at the increment operator..it is postfix...i.e. first calculate then increase..
5*a++;
=5*5; //now a's value is 6
=25......your answer
Answered by
2
Answer:-
Given,
a=5 initially,
So,
5*a++
=5*5
=25
Now, a becomes 6 (post increment).
Similar questions