#include <stdio.h> unsigned int i = (unsigned int)"test!"; //这么改下 int main() { printf("%s\n", i); //输出 修改 return 0; }
#include <stdio.h> #include <stdint.h> #include <inttypes.h> uintptr_t i = (uintptr_t)"test!"; int main( void ) { printf( "%"PRIuPTR"\n", i ); }