Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C string literal
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x86 #include <stdio.h> #define DIMENSION(array) (sizeof(array) / sizeof(array[0])) int main() { char str[] = "가"; printf("%Iu\n", sizeof(str)); printf("%Iu\n", sizeof("가")); for (int i = 0; i < DIMENSION(str); ++i) { printf("%02X ", (unsigned char)str[i]); } putchar('\n'); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
visual-wtf
Visual C++ template instantiation
Matrix_1
bad_cast
Fibonacci stairs
Number of paths in matrix
trying to find if reinterpret_cast preserves calling convention
VC++ Template Comment
amusing overload choice
C++ standard library formatted input hexadecimal float without prefix or exponent test case
Please log in to post a comment.