Standard Input in different languages


/ Published in: C
Save to your folder(s)

Other languages are included as well


Copy this code and paste it in your HTML
  1. #include <stdio.h>
  2.  
  3. #define MAX_LEN 20
  4.  
  5. char myString[MAX_LEN + 1];
  6. fgets(myString, MAX_LEN + 1, stdin);

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.