I tried using %[] but VSC immediately paint the % red and report an error.
CodePudding user response:
You can use scanf() to read a string with embedded spaces this way:
char fullname[100];
if (scanf(" 
I tried using %[] but VSC immediately paint the % red and report an error.
CodePudding user response:
You can use scanf() to read a string with embedded spaces this way:
char fullname[100];
if (scanf("