Hi friends,
I was reading an article and I found this line of code for a C program.
What is meaning of the code in double quotes?Code:static char abc[7]="\xb8\x00\x00\x00" "\xff\xe0"
Hi friends,
I was reading an article and I found this line of code for a C program.
What is meaning of the code in double quotes?Code:static char abc[7]="\xb8\x00\x00\x00" "\xff\xe0"
It's a series of hexadecimal escape sequences. Each '\xNN' represents the character with value NN in hexadecimal.
Whoever wrote this code has no idea what they are doing. There is no guarantee that 0xb8, 0xff and 0xe0 will fit in a char.
Last edited by Bachstelze; February 28th, 2012 at 11:36 PM.
Bookmarks