0
Input: \ output: \
We want to accept the input as back slash and we want to print the back slash in c program
2 Respuestas
+ 2
Describe your question in details.
It is not a problem to input a backslash:
#include <stdio.h>
int main(){
char c;
scanf("%c", &c); // if you enter '\' variable c will contain it
printf("%c\n", c); // prints value of c
printf("\\"); // prints backslash in string
return 0;
}
0
Please anyone tell quickly