#include <cstdio>
#include <iostream>
int main()
{
// escape sequence covered - \' \" \? \\ \0 \a \b \n \r \t
printf("\n 1. sandeep \t dheeraj\n");
#include <iostream>
int main()
{
// escape sequence covered - \' \" \? \\ \0 \a \b \n \r \t
printf("\n 1. sandeep \t dheeraj\n");
printf("\n 2. sandeep \v dheeraj\n");
printf("\n 3. sandeep \r dheeraj\n");
printf("\n 4. sandeep \a\a\a dheeraj\n");
printf("\n 5. sandeep\b dhe\0eraj extra\n");
printf("\n 6. \'sandeep\' \\ \n"); // used \' \" \\
printf("\n 7. Ram? \n");
printf("\n 8. Ram\? \n"); //why we use \? this escape sequence
printf("\n 9. \"dheeraj\" \n");
}
}
OUTPUT:
No comments:
Post a Comment