What is the basic assignment operator in C?

The basic assignment operator in C is =. It assigns the value on the right side of the operator to the variable on the left side.

What is chained assignment in C?

Chained assignment allows you to assign the same value to multiple variables in a single statement. For example: a = b = c = 10;.

What are compound assignment operators in C?

Compound assignment operators combine an operation with assignment. Examples include +=, -=, *=, /=, and %=.

How does += work in C?

The += operator adds the right-hand operand to the left-hand operand and assigns the result to the left-hand operand. Example: a += 5; is equivalent to a = a + 5;.

How does assignment differ from comparison in C?

Assignment (=) assigns a value to a variable, while comparison (==) checks if two values are equal.

What is the difference between pre-increment and post-increment?

Pre-increment (++a) increments the variable before using it in an expression, while post-increment (a++) uses the variable first, then increments it.

Can a constant be assigned a value?

No, you cannot assign a value to a constant after it has been declared with const. Doing so will result in a compilation error.