Computer Science, asked by sanyalritaja, 11 months ago

Plzzzzzz answer the questions

Attachments:

Answers

Answered by sswaraj04
0

Answer:

Explanation:

I am stating each line

a=10

b=++a;  ->a=11,b=11

print(a) ->11

print(b) ->11

here there's a typo maybe

p=--a; -> p=10,a=10

a++; -> a=11

print(a) -> 11

c=b++;  ->c=11,b=12

print(c)  ->11

output

11

11

11

11

a=11

now if there is b=--a instead of p=--a then only change is

b=--a;  -> a=10, b=10

.....

c=b++;  -> c=10 ,b=11

output

11

11

10

11

a=11

now second question.......

int c= a%a++ + ++a - ++a;

int c=2%2 + 3 - 4  -> c=-1

output

-1

Hope it helps :-)

Similar questions