-2
[email protected]:~/Desktop$ cc sample.c
sample.c: In function ‘main’:
sample.c:7: warning: format ‘%o’ expects type ‘unsigned int’, but argument 2 has type ‘long int’
[email protected]:~/Desktop$ cc sample.c
sample.c: In function ‘main’:
sample.c:7: warning: format ‘%o’ expects type ‘unsigned int’, but argument 2 has type ‘long int’
因爲它們被指定爲採取unsigned int
。
(不,真的。)
你想如何指定負數? –
爲什麼不能?............ – Dani
@Ignacio Vanquez-Abrams:十六進制數通常不會有負數,甚至不是浮點數。 – Dani