> scanf("%d", Value);
Your compiler should be telling you that you forgot the &
Where's the loop in your sendD code?
Code:start(); send(A); value = get(); if ( value != 1 ) { while ( n != 0 ) { send(*pointer); value = get(); if ( value == 1 ) break; ++*pointer; n--; } } stop(); return value;