Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
2k views

why do we pass arguments to the main function?

I did not understand that ,why do we pass arguments to the main function? for example in pset3 generate.c main {int argc,string argv[]}. please explain?
user1279's user avatar
0 votes
1 answer
267 views

Breakout main function will not move the paddle or the ball

I have created the paddle, ball, and bricks, but when I write the code to make paddle move nothing happens. I tried to write the ball movement code also but that doesn't work either. I think I am ...
Brad's user avatar
  • 3
0 votes
1 answer
3k views

pset3 helpers c, linear search

bool search(int value, int values[], int n) { // TODO: implement a searching algorithm for (int i = 0; i < n; i++) { if(values[i] == value) { return i; ...
Hang Man's user avatar