This document contains code snippets and notes about C programming. It shows an error when trying to assign a value to a variable used on the left side of an assignment operator. It also demonstrates how the post-increment operator works, showing that it first uses the value then increments, printing the changed and unchanged values. The final note explains that 2D array indexing is equivalent to pointer arithmetic.
This document contains code snippets and notes about C programming. It shows an error when trying to assign a value to a variable used on the left side of an assignment operator. It also demonstrates how the post-increment operator works, showing that it first uses the value then increments, printing the changed and unchanged values. The final note explains that 2D array indexing is equivalent to pointer arithmetic.
This document contains code snippets and notes about C programming. It shows an error when trying to assign a value to a variable used on the left side of an assignment operator. It also demonstrates how the post-increment operator works, showing that it first uses the value then increments, printing the changed and unchanged values. The final note explains that 2D array indexing is equivalent to pointer arithmetic.
NOTE: int a=10,aa; aa=a+++a; printf(%d%d,aa,a); // aa=20 a=11 int a=10,aa; a=a+++a; printf(%d, a); // a=21 NOTE: a[2][1] same as *(a[2]+1) same as *(*(a+2)+1)