#include <stdio.h>
int main() {
// \a - Audible Bell (Alert)
//printf("oh ! hurry up, your class starts \a\n");
// \b - Backspace
printf("How are you\b\b\b i am fine \n"); // Removes the last three characters
// // \f - Form Feed
printf("Page 1\fPage 2\n");
printf("page 1 \f page 2");
\n - New Line
printf("Hello\nWorld\n");
printf("oh ! hurry up, \nyour class starts");
// \r - Carriage Return
printf("89705hht\rtohit\n");
printf("i am not \rfine\n");
// \t - Horizontal Tab
printf("Name\tAge\tCountry\n");
printf("John\t25\tUSA\n");
printf("Alice\t30\tUK\n");
// \v - Vertical Tab
printf("doing\v homework\n");
// \\ - Backslash
printf("C:\\Program Files\\MyApp\n");
printf(" you are \\ great");
// \' - Single Quote
printf("It\'s a sunny day!\n");
printf("it\"s my turn\?");
// \" - Double Quote
printf("\"dude, what the magic \"\n");
// \? - Question Mark
printf("Where have you been\?\n");
// \0 - Null Character
char str[] = "Hello\0World";
printf("%s\n", str);
char tables[] = "the number of \0table";
printf("%s\n", tables);
// \e - Escape Character
printf("\e[1mBold Text\e[0m\n");
// Octal Escape Sequence (\nnn)
printf("Octal 101 is: \115\n"); // Outputs: A
printf("Octal 102 is: \102\n"); // Outputs: B
printf("Octal 040 is: \040Hello\n"); // Outputs: " Hello" (space before "Hello")
// // Hexadecimal Escape Sequence (\xnn)
printf("Hexadecimal 0x41 is: \x41\n"); // Outputs: A
printf("Hexadecimal 0x42 is: \x50\n"); // Outputs: P
printf("Hexadecimal 0x20 is: \x20Hello\n"); // Outputs: " Hello" (space before "Hello")
return 0;
}