I mean to say scanf without %c or %s and without gets/getc
We can input using the scanset. Like char str[20]; scanf("℅[\^n]", str);
e.g. Suppose I enter a string : Ram and Shyam likes Ramesh then the output should be Ramesh and Shyam likes Ram. Here first word Ram is swapped with Ramesh .
It was asked today in interview but could not crack it, any help.