what is the fastest method to take string as input?
i hve googled it several times… iam not getting its proper implementation in the code… iam getting errors which iam unable to resolve
char str[size]
- cin>>str;(slowest)
- scanf("%s",str)(faster than 1)
- gets(str)(faster than 2)
- getchar_unloced()(fastest) read character by character