Skip to content

Instantly share code, notes, and snippets.

@berviantoleo
Created December 6, 2017 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berviantoleo/2e99cae73df476c78fabaf0bf2e4c1cf to your computer and use it in GitHub Desktop.
Save berviantoleo/2e99cae73df476c78fabaf0bf2e4c1cf to your computer and use it in GitHub Desktop.
Standart Input Scanf in C without limit the length of input.
#include <stdio.h>
int main() {
char str1[5];
scanf("%s", str1);
printf("%s", str1);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment