What is the difference between single equal = and double equal == operators in c?
Answers
Answered by
12
Answer:
single = is for assigning the values to a variable hence called as assignment operator and == is for checking the equality of two values and hence is one of the relational operators
Explanation:
Answered by
7
Single = is an assignment operator used to assign the value to the variable.
Whereas
Double = = is rational operator used to compare two variable whether they are equal or not.
Similar questions
English,
5 months ago
English,
5 months ago
Computer Science,
10 months ago
Computer Science,
10 months ago
Science,
1 year ago
English,
1 year ago
Computer Science,
1 year ago