All Questions
2 questions
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 ./...
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 ...