- ACompilation Error
- BRuntime Error
- CC programming Presented by %s Atnyla
- DNone
Rambo
"Rambo"
\Rambo\
50%
Rambo
"Rambo"
\\Rambo\\
50%%
Rambo
"Rambo"
\\Rambo\
50\%
Output:
C programming Presented by %s Atnyla
Output:
Atnyla
Compilation Error
\ - 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.
$ cc pgm1.c $ a.out PEACH = 5
$ cc pgm2.c $ a.out C programming Class by %s atnyla
$ cc pgm3.c pgm3.c: In function 'main': pgm3.c:5: error: expected identifier or '(' before numeric constant
$ cc pgm5.c $ a.out 8
$ cc pgm7.c $ a.out 1 5