79657895

Date: 2025-06-08 14:09:22
Score: 0.5
Natty:
Report link

is there a #pragma or other compile-time solution to make 'abcd' expressions interpreted as little-endian 0x64636261?

To get 0x64636261, use

#include <stdint.h>

UINT32_C('a') << 24 | UINT32_C('b') << 16 | UINT32_C('c') << 8 | UINT32_C('d')
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): is there a
  • High reputation (-2):
Posted by: ikegami