-
A
Rambo
"Rambo"
\Rambo\
50% -
B
Rambo
"Rambo"
\\Rambo\\
50%% -
C
Rambo
"Rambo"
\\Rambo\
50\% - D Error
- Share this MCQ
Answer:
A
Share this MCQ
Without a backslash, special characters have a natural special meaning. With a backslash they print as they appear.
\ - escape the next character " - start or end of string ’ - start or end a character constant % - start a format specification \\ - print a backslash \" - print a double quote \’ - print a single quote %% - print a percent signThe statement
printf(" \" ");
will print you the quotes. You can also print these special characters \a, \b, \f, \n, \r, \t
and \v with a (slash) preceeding it.
Click me to Read more Question & Answer of
Operators and Enums in C Language
Share this MCQ