Posted By

ariellephan on 12/17/11


Tagged

input stdin


Versions (?)

Standard Input in different languages


 / Published in: C
 

URL: http://code.wikia.com/wiki/Standard_input

Other languages are included as well

  1. #include <stdio.h>
  2.  
  3. #define MAX_LEN 20
  4.  
  5. char myString[MAX_LEN + 1];
  6. fgets(myString, MAX_LEN + 1, stdin);

Report this snippet  

You need to login to post a comment.