3916
Poop.
Printable View
3916
Poop.
Gee, I dunno, Java maybe?
Pop quiz!
What goes wrong here?Code:#include <stdio.h>
int main( int argc, char **argv )
{
char *post = "3" + "9" + "1" + "8";
printf( "%s\n", post );
}
3918
3,919
2 hours left until freedom!!!
3920
"I see dead people."
Pussy :D
3921
Cleeeek
3922
3921
Show of hands, who is going to watch Zombieland in the near future?
3924 ;)
3926
"Your movie was like a two-hour gay joke, its like 'Batman & Robin' all over again!"
3927
3928
Correct!!!
And what you did wrong? You cannot concatenate a C-style string with the + operator. I think you are supposed to use:
...but I'm not 100% sure since I haven't studied the cstring library that much. :pCode:char *post = "3";
strcat(post, "9");
strcat(post, "1");
strcat(post, "8");
3930