Find sum of 10 nos using array of size 1 and two *pointers
int x[1],i,*xptr,i,*s;
for(i=0;i<10;i++)
{
scanf("%d",&x[i]);
}
xptr=&x;
for(i=0;i<10;xptr++,i++)
{
*s=*s+*xptr;
}
prnitf("%d",*s);
hey,
Using old code(non-ANSI)
The search detects elements in all positions in the 1-d array, except the last one
pastebin- *pastebin.com/f4db70a8b
Does anyone see my mistake? debugging is not my strong suit
Hi Guest we just wanted to alert you to a major change in the forum. We will no longer be allowing the posting of outgoing links. Please use the attachment feature to attach media to your posts.