Why does the following code crash under MSVC++ 2010, and give unexpected output under turbo c , if a space is not given between '%s' and '%c' in scanf....
Code:#include <stdio.h> int main() { char c,name1[15]; scanf("%s%c",name1,&c); printf("\n%s %c",name1,c); return 0; }