In addition to the \n that you used to create a new line in C, several other escape characters exist including:i. a Bell (speaker beeps)ii. b Backspace (non-erase)iii. f Form feed/clear screeniv. n New linev. r Carriage Returnvi. t Tabvii. v Vertical tabviii. \ Backslashix. ? Question markx. ' Single quotexi. " Double quoteThey all are implemented the same way by placing a backslash in front of the character (e.g. \v \t ...)Of course the end results will be different for each. Using the hello, world example as a template, modify the statement that includes the \n and add one or more additional escape characters from the list above. Show your code and explain what happened.

Respuesta :

Answer:

Answer is explained below

Explanation:

List of escape character and their use:

\a    Alarm or Beep    

\b    backspace character transfers the cursor one character back

\f    Form Feed

\n    New Line

\r    Carriage Return Character

\t    Tab (Horizontal) \t is a horizontal tab character

\v    Vertical Tab character

\\    Backslash (escape sequence to print backslash)

\?    Question Mark

\'    Single Quote (Escape character to print ' single quote)

\"    Double Quote (Escape character to print " double quote)

#include <stdio.h>

int main()

{

   printf("Hello World\n");

   printf("H\ae\al\al\ao World\n");

   printf("Hello Wo\b\brld\b\b\b\n");

 

   printf("Hello World\n");

   printf("Hello wr \r old\n");

   printf("Hello \tWorld\n");

   printf("Hello"); printf("\v world\n");

   printf("Hello\\World\n");

   printf("\?Hello World\n");

   printf("\'Hello World\n");

   printf("\"Hello World\n");

   return 0;

}

Output:

Ver imagen dannwaeze45
ACCESS MORE
EDU ACCESS
Universidad de Mexico