Computer Science, asked by adtya5, 1 year ago

given that a=5,b=3,d=1.5 find c=(a++)*d+a

Answers

Answered by neelbhatkar3
4

c=(a++)*d+a

c=(5.0)*1.5+6.0                      (a++ is an postfix increment operator and not a prefix                                    

                                       that is it will make a change after action so the value  

                          of a++ in the action will remain the same but the value of a will

                          be incremented or changed after the a++ action and the  

                          increemneted value of a will be used  everywhere for    

                          performing any further action consisting of a.)

c=7.5+6.0          

c=13.5                 (implicit data type conversion)

Answered by mdarbajansari847
1

Answer:

Explanation:

c=(a++)* d+a find expression a=5 b=3 d=1.5

Similar questions