Computer Science, asked by ishal70, 6 months ago

what will be the result produced by the following if a=5 initially 5*a++;​

Answers

Answered by BrainlyProgrammer
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 anindyaadhikari13
2

Answer:-

Given,

a=5 initially,

So,

5*a++

=5*5

=25

Now, a becomes 6 (post increment).

Similar questions