write a program to show the uses of all escape sequences
Answers
Answered by
0
Answer:
A escape sequence in C language is a sequence itself when used inside string literal or character
Answered by
2
/*C program to demonstrate examples of escape sequences.*/
#include <stdio.h>
int main()
{
printf("Hello\nWorld!"); //use of \n
printf("\nHello\tWorld!"); // use of \t
printf("\n\"Hello World!\""); //use of \"
printf("\nHello\bWorld!"); //use of \b
return 0;
}
Similar questions