Hi there
i just wanted to ask how would you write 2M using escape sequence?
its an exercise in my book
A 'M' is \x4d
Edit:
Something i need to make clear.sry for that
like i can write
cout << "2m" << endl;
Last edited on
What do you mean by "2M" ?
literally 2M like i can write
but how do i do it in escape sequences and sorry for puttin it in lounge i changed it to Beginners
Last edited on
Literally 2M is "2M" not "2m":) So the assignment is not clear :)
Last edited on
But in any case you should to determine codes of these characters and use them in escape character literals.
For example if ASCII table is used then escape character literal for 2 will be
'\062'