Computer Science, asked by gauravipatil, 3 months ago

Please Answer fast and correctly.

Write the output for the following:                                                                   

a. Int s=30, t=10;
s+=6;
      t--;              

b. Float p=52
p--; 
         

Answers

Answered by manishjha580
1

Answer:

A) int s=30, t=10;

s=s+6;

t--;

Output:- for s=36 and t=9

B) Float p=52;

p--;

I don't know which programming language you are using but output for this programme will depend on your programming language.

In java this will give compile time error, because for storing Floating point value we have to explicitly tell to compiler that we are storing Floating value, Like this :- Float p=52F;

But other programming language it's fine.

Output will be 51....

Similar questions