What is difference between num=10 and num==10
Answers
Answered by
23
in num=10 we r assign a value to num
and.....
in num==10 we r checking if num is equal to 10 or not.
hope its helpful..........
and.....
in num==10 we r checking if num is equal to 10 or not.
hope its helpful..........
Answered by
8
num =10 is used to assign value num to 10 and num==10 is to check the relation whether num is equal or not equal to 10
Similar questions