unsigned int i; unsigned long int j; scanf("%u",i); scanf("%lu",j);
但这会引起以下警告:
警告:格式’%u’期望类型为’unsigned int *’的参数,但参数2具有类型’unsigned int'[-Wformat]警告:格式’%lu’期望类型为’long unsigned int *’的参数,但参数2具有类型’long unsigned int'[-Wformat]任何人都可以向我解释这里发生了什么?
scanf("%lu",&i);