Monday, July 27, 2009

I need as many as possible 'escape sequences' in C language other than: \n, \t, \b, \a, \\, \", \'

just started wid C language. need these for an assignment in college, thanks

I need as many as possible 'escape sequences' in C language other than: \n, \t, \b, \a, \\, \", \'
The following is a list of escape sequences.








\n Newline


\tHorizontal Tab


\vVertical Tab


\bBackspace


\rCarriage Return


\fForm feed


\aAudible Alert (bell)


\\Backslash


\?Question mark


\'Single quote


\"Double quote





\000Oct - No one uses Octal unless they have an ICL background...


\xhhHex number


\ Preprocessor line continuation, must be immediately followed by a newline.
Reply:Here are few escape sequances I know





\a - makes a bell sound


\b - makes a backspace


\f - feed form.


\n - makes a newline


\r - carriage return(just like \n but on the same line)


\t - makes a tab.


\v - makes a vertical tab.


\\ - Used to denote \





And some other endlines which I dont know to use


\" \' .....





I hope there are many more. If you find any more Let me also know that.





Thank you


No comments:

Post a Comment