Computer Science, asked by zakiya8564, 6 months ago

write difference between =and ==with example

Answers

Answered by venkatasivapraveen92
0

Answer:

= means operation to be done,==LHS must be equal to RHS and checking condition

Explanation:

let us take a example

if a=b/2 then a may be any value

where b=a%2==0 means b must be 0

Answered by BrainlyProgrammer
2

Answer:

See..the main difference between "=" and"==" is....

"=" is an:

  • assignment operator
  • used to asign a value to a variable
  • Example: int a= 5;

"==" is a

  • relational/conditional operator
  • used to check a condition
  • Example:

                         if (a==b)

                         System.out.print("Equal");

                         else

                         System.out.print("not equal");

Explanation:

Hopes its helps u mark me brainliest

Similar questions