Next: Passing pointer address Up: Common Mistakes in C Previous: Common Mistakes in C

Assignment (=) vs Comparison (==)

C uses assignment by value so if (a = b) is legal


Dave.Marshall@cm.cf.ac.uk
Fri May 20 13:40:49 BST 1994