When to use =,and when to use== in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

When to use =,and when to use== in c++

29th May 2018, 5:08 AM
Vikram
Vikram - avatar
2 Answers
+ 2
= is used making a value equal to another == is used to taste if they are equal or not
29th May 2018, 12:28 PM
Shahil Ahmed
Shahil Ahmed - avatar
+ 1
=: int a = 10; ==: if (a==10){ //code }
29th May 2018, 5:19 AM
Paul Grasser
Paul Grasser - avatar