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
Wed Sep 14 10:06:31 BST 1994