fori=0;i

  1. Manojap

    Pointer Magic

    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);
  2. K

    Binary Search in C++ using old code, search doesnt register element in last position

    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
Top Bottom