gets (variable)

Posted by borlee on Stack Overflow See other posts from Stack Overflow or by borlee
Published on 2010-04-22T19:21:12Z Indexed on 2010/04/22 19:23 UTC
Read the original article Hit count: 209

Filed under:
|

can anyone tell me why gets(abc) works with char[] but not with int? int abc; char name[] = "lolrofl"; printf("Hello %s.\n",name); printf("\n >> "); fflush(stdin); gets (abc); printf("\n die zahl ist %i.\n",abc); system("Pause"); return(0);

© Stack Overflow or respective owner

Related posts about gets

Related posts about c++