Skip to main content
added 25 characters in body
Source Link
Badr Bellaj
  • 18.8k
  • 4
  • 59
  • 75

the \xNN notation is used to express hexadecimal like in Javascript(Hexadecimal escape sequences).

The provided forms are the same to represent the value of :0xaca7da

Difference :

\x could be used to express a special hex(initial form) value within a string e.g : "aca7\xd4" which is in asci will be converted to hex 0x61636137da so 'da' keeps its form(not considered as a string).However, hex"" will consider the whole string in the hex form.

the \xNN notation is used to express hexadecimal like in Javascript(Hexadecimal escape sequences).

The provided forms are the same to represent the value of :0xaca7da

Difference :

\x could be used to express a special hex(initial form) value within a string e.g : "aca7\xd4" which is in asci 0x61636137da so 'da' keeps its form(not considered as a string).However, hex"" will consider the whole string in the hex form.

the \xNN notation is used to express hexadecimal like in Javascript(Hexadecimal escape sequences).

The provided forms are the same to represent the value of :0xaca7da

Difference :

\x could be used to express a special hex(initial form) value within a string e.g : "aca7\xd4" which is in asci will be converted to hex 0x61636137da so 'da' keeps its form(not considered as a string).However, hex"" will consider the whole string in the hex form.

added 4 characters in body
Source Link
Badr Bellaj
  • 18.8k
  • 4
  • 59
  • 75

the \xNN notation is used to express hexadecimal like in Javascript(Hexadecimal escape sequences).

The provided forms are the same to represent the value of :0xaca7da

Difference :

\x could be used to express a special hex(initial form) value within a string e.g : "aca7\xd4" which is in asci is = 0x61636137da so 'da' keeps its form(not considered as a string).However, hex"" will consider the whole string in the hex form.

the \xNN notation is used to express hexadecimal like in Javascript(Hexadecimal escape sequences).

The provided forms are the same to represent the value of :0xaca7da

Difference :

\x could be used to express a special hex(initial form) value within a string e.g : "aca7\xd4" in asci is = 0x61636137da so 'da' keeps its form(not considered as a string).However, hex"" will consider the whole string in the hex form.

the \xNN notation is used to express hexadecimal like in Javascript(Hexadecimal escape sequences).

The provided forms are the same to represent the value of :0xaca7da

Difference :

\x could be used to express a special hex(initial form) value within a string e.g : "aca7\xd4" which is in asci 0x61636137da so 'da' keeps its form(not considered as a string).However, hex"" will consider the whole string in the hex form.

Source Link
Badr Bellaj
  • 18.8k
  • 4
  • 59
  • 75

the \xNN notation is used to express hexadecimal like in Javascript(Hexadecimal escape sequences).

The provided forms are the same to represent the value of :0xaca7da

Difference :

\x could be used to express a special hex(initial form) value within a string e.g : "aca7\xd4" in asci is = 0x61636137da so 'da' keeps its form(not considered as a string).However, hex"" will consider the whole string in the hex form.