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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
18 views
Recall C Pointers
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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1
NOTE:Int i=20;
&i=999; //error Lvalue required
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)