Computer Science, asked by sarjeettanwar1, 3 months ago

What is the difference of a=20 and a==20

Answers

Answered by jiyaverma59
5

HOPE IT HELPS YOU

MARK IT AS BRAINLIEST..

Attachments:
Answered by CoderRishav
5

Answer:

'=' is use for assign the value for example

int var = 20 means the value 20 is, stored in variable name 'var' , by using sign '=' you can give value

'==' is use to check the condition for eg ,

10 == 10

the condition is true, '==' is used for comparison that weather the two values are equal or not

hope you like it buddy :)

give a thanks by click on Heart :)

and Mark as brainlist you satisfied with this answer :)

Similar questions