New course! Every coder should learn Generative AI!
Try a free lesson+ 1
When to use =,and when to use== in c++
2 Answers
+ 2
= is used making a value equal to another
== is used to taste if they are equal or not
+ 1
=:
int a = 10;
==:
if (a==10){
//code
}