Computer Science, asked by arpita14376, 1 year ago

a=7 find b=a+++a--+++a​

Answers

Answered by ashutoshsingh88
1

Answer:

b=a+++a--+++a

b = 7+3+7-2+3+7

b=10+5+10

b=25

Answered by shatagopasunil04
0

b=7

as the given expression is postfix

the value of b will be increamented in next instruction

for clear understanding

a=1

the outputs of following

a=++b gives 2

as preincrements before coming to near 2

a= b++ gives 1

in this value b assigned directly to a

in the next instruction

let print b gives 2

small program

a=1

print a++. gives 1

print a. gives 2

I hope you understood..

Similar questions