You are viewing our Forum Archives. To view or take place in current topics click here.
[Coding][C] Need help with a function
Posted:
[Coding][C] Need help with a functionPosted:
Status: Offline
Joined: Oct 15, 201014Year Member
Posts: 303
Reputation Power: 10
Status: Offline
Joined: Oct 15, 201014Year Member
Posts: 303
Reputation Power: 10
#2. Posted:
Status: Offline
Joined: Oct 09, 201014Year Member
Posts: 2,358
Reputation Power: 106
Status: Offline
Joined: Oct 09, 201014Year Member
Posts: 2,358
Reputation Power: 106
what error are you getting?
Also arraydata isnt being called right now.
Also arraydata isnt being called right now.
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Oct 15, 201014Year Member
Posts: 303
Reputation Power: 10
Status: Offline
Joined: Oct 15, 201014Year Member
Posts: 303
Reputation Power: 10
#4. Posted:
Status: Offline
Joined: Oct 09, 201014Year Member
Posts: 2,358
Reputation Power: 106
Status: Offline
Joined: Oct 09, 201014Year Member
Posts: 2,358
Reputation Power: 106
#5. Posted:
Status: Offline
Joined: Oct 15, 201014Year Member
Posts: 303
Reputation Power: 10
Status: Offline
Joined: Oct 15, 201014Year Member
Posts: 303
Reputation Power: 10
#6. Posted:
Status: Offline
Joined: Oct 09, 201014Year Member
Posts: 2,358
Reputation Power: 106
Status: Offline
Joined: Oct 09, 201014Year Member
Posts: 2,358
Reputation Power: 106
Suis wroteXaldin wrote Size has to be known at compile time to pass an array of arrays, youll have to use a dynamically allocated array or another way of simulating the same thing.
[ Register or Signin to view external links. ]
okay so, if my size can be a maximum of 500 should i use 500?
yea that should work, compiler just needs a size to work with. Try it and see if it works
- 0useful
- 0not useful
#7. Posted:
Status: Offline
Joined: Oct 15, 201014Year Member
Posts: 303
Reputation Power: 10
Status: Offline
Joined: Oct 15, 201014Year Member
Posts: 303
Reputation Power: 10
Xaldin wroteSuis wroteXaldin wrote Size has to be known at compile time to pass an array of arrays, youll have to use a dynamically allocated array or another way of simulating the same thing.
[ Register or Signin to view external links. ]
okay so, if my size can be a maximum of 500 should i use 500?
yea that should work, compiler just needs a size to work with. Try it and see if it works
okay so update,
my new problem is my scanf in my arrayData function is returning only zeros. here is the code that i wrote
Edit: nvm i got it
- 1useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.