So, people.
What was a bad programming mistake you made?
What was a bad programming mistake you made?
Started by the-pi-guy, Mar 13, 2016, 10:39 PM
previous topic - next topic0 Members and 1 Guest are viewing this topic.
So, people.I make infinite loops far too commonly.
What was a bad programming mistake you made?
I'm having some issues with C.Does s[1] also print the whole array?
I'm trying to compare two strings... And the stack overflow solution isn't working at all.
For some reason trying to print out:
Char s[100];
print(s[0]);
This code prints the entire array.
VizionEck Cube Royale is releasing this year "I'm Mike Armbrust" -Me |
I make infinite loops far too commonly.I figured out part of it.
Does s[1] also print the whole array?
Computers be like:I mean yes that be factual.
"10+10=100"
"11+11=110"
"101*1101=1000001"
VizionEck Cube Royale is releasing this year "I'm Mike Armbrust" -Me |
I mean yes that be factual.I think someone who doesn't know binary would be very confused that 10+10 =100.
I'm having some issues with C.Why not sure printf?
I'm trying to compare two strings... And the stack overflow solution isn't working at all.
For some reason trying to print out:
Char s[100];
print(s[0]);
This code prints the entire array.
Why not sure printf?I meant printf.
printf("%c",s[0]);
I meant printf.Yeah the way you were using printf was just all kinds of wrong so I wasn't sure if there was an actual print command in C.
But that's probably why it was outputting the whole array.
Page created in 0.740 seconds with 22 queries.