2011-08-21 271 views
-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’ 
+0

你想如何指定負數? –

+1

爲什麼不能?............ – Dani

+0

@Ignacio Vanquez-Abrams:十六進制數通常不會有負數,甚至不是浮點數。 – Dani

回答

7

因爲它們被指定爲採取unsigned int

(不,真的。)

相關問題