could you please show me how to increment a[0] for 4 (+4) but while using pointers as above?Code:#include<stdio.h> main(){ int a[5]={5,50,100,150}; int *iPtr; iPtr=a; printf("\n%d", ++*iPtr); // this will increment a[0] but not temporary printf("\n%d", *iPtr+4); // this will increment a[0] temporary



LinkBack URL
About LinkBacks



