- #1
- 4,652
- 37
Here's a question I am working on for a c programming assignment.
If the following printf statement was part of a complete program, what would it print?
printf("%c",'\x4d');
Now, I know this prints M because I ran it, and I know the output is a single character because %c is a single character conversion spec. But I don't understand what value '\x4d' is returning. Is it just producing the character M and if so why?
Thanks for your help!
If the following printf statement was part of a complete program, what would it print?
printf("%c",'\x4d');
Now, I know this prints M because I ran it, and I know the output is a single character because %c is a single character conversion spec. But I don't understand what value '\x4d' is returning. Is it just producing the character M and if so why?
Thanks for your help!