0

Input: \ output: \

We want to accept the input as back slash and we want to print the back slash in c program

26th Mar 2020, 11:02 AM
Ajay S
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; }
26th Mar 2020, 12:34 PM
andriy kan
andriy kan - avatar
0
Please anyone tell quickly
26th Mar 2020, 11:19 AM
Ajay S