Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
46 views

find.c in Pset 3; int straw = get_int(); ./generate 1000 50 | ./find 127; Why I can't see this pseudorandom numbers?

How can I supplement this code printf("\nhaystack[%i] = ", size);that I can see the actual pseudorandom numbers that each i-th[] contain inside itself after haystack[1000] = using this command ./...
Yellowfun's user avatar
  • 105
0 votes
1 answer
154 views

pset3 find.c corner case

I made a for loop for searching and sorting in the header file. Both loops start off like this: for (int i = 0; i < n ; i++) find.c compiles fine for me but when I put the needle at the end of ...
hunter's user avatar
  • 31