Why scanf function do not accept escape sequences as an input?
Code
#include <stdio.h>
int main(){
char str[100];
printf("Enter value: ");
scanf("%s", str);
printf("\nYou Entered: %s", str);
}
Output
Enter value: hello \n world
You Entered: hello