C語言中%與/

%:模運算符,或者稱求餘運算符,%兩側均應爲整型數據,如9%4=1 /:除法運算符  9/4=2 例1: #include <stdio.h> main() { int a,b,c; a=10; b=20; c=10%20; printf("%d %d %d",a,b,c);    }  
相關文章
相關標籤/搜索