i have doubt in how to increase the order under NSLOg statement. for e.g my code is
int anBray[ ] = {0,5, 89, 34,9,189,9,18,9 34,89, 34,2,600,-2,0};
int i
You can use this code
for (i=0; i<sizeof(anBray)/sizeof(int); i++) {
NSLog(@ " anBray[%d]= %d ",i,anBray[i]);
}
May this will help you..
Fixed that for you:
for (i=0; i<sizeof(anBray)/sizeof(int); i++) {
NSLog(@ " anBray[%d]= %d ",i,anBray[i]);
}
Change NSLog(@ " anBray[i]= %i ",anBray[i],anBray[i]);
to NSLog(@ " anBray[%i]= %i ",i,anBray[i]);
for (i=0; i<sizeof(anBray)/sizeof(int); i++)
NSLog(@ " anBray[%d]= %i ",i,anBray[i]);