跳到主要內容

程式設計-C語言 / OLD / 2021-訊三甲( 蔡 ) / 1105-% 的優先順序

運算子優先次序的細節:

1

1

#include
 
int main(){
    int a;
    a = 5 + 8 % 3 * 9;
    printf("\n 運算結果= %d \n", a );
    return 0;
}
1
 

1

#include
using namespace std;
int main()
{
    cout << 8 % 3 * 9;
    return 0;
}
1

 

 

 

時間類別單位標題發佈點閱
跳至網頁頂部