Fast I/O with strings

Hi everyone! I want to know that is there a way like getchar unlocked to input character arrays or strings way more faster? Besides gets, what else can I use to take string or character array as input from stdin faster?

This is one of my solns where i have used string ip using getchar_unlocked…it did make it faster but cant say if it is faster than gets…hope this helps…:slight_smile: