Well, the retarded third cousin of your code anyway..... :tongue:
LOL....touche sir. :biggrin::wink:
Type: Posts; User: AndrewHunter
Well, the retarded third cousin of your code anyway..... :tongue:
LOL....touche sir. :biggrin::wink:
Haha.....oops. You are too logical Tater, at least there was no way my solution could have been reasonably used. :rolleyes::tongue:
Haha.....good catch quzah. Fixed it, thanks. :wink::tongue:
How about this one: :rolleyes::tongue:
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(void){
char input[5] = {0};
Yeah, good point. I thought about that but decided to be lazy with my example. :rolleyes:
Then why don't you make an array, e.g. a string table like your assignment asked for?, e.g.
char * stringTable[10];
And then fill in your array with the values you want.
Creating a lookup table would be a simple solution for this, yes. Probably the way I would have solved the problem statement.
Haha...I am being stupid again. Thanks Laser. :biggrin:
Did you miss where he stored "zero" into char a and the like?
No you didn't answer the question and I don't even think that code will compile. Start reading through the C tutorials on this site. Once completed, sit down and think about your problem. Then write...