Pointer Expressions in C

  • y = *p * *q // (*p) * (*q)
  • sum += *p , *p2 = *p2 + 10
  • z = 5 * - *p2/ *p1 //(5 * (-(*p2)))/(*p1)
  • in above /* is not acceptable
  • p+1, p – 4, p++, p- - are allowed
  • p2 –p1 for the same array are no of elements in between them

No comments:

Post a Comment