c中的运算优先级:
优先级 |
运算符 |
名称或含义 |
使用情势 |
结合方向 |
说明 |
1 |
[] |
数组下标 |
数组名[常量表达式] |
左到右 |
|
() |
圆括号 |
(表达式)/函数名(形参表) |
|||
. |
成员选择(对象) |
对象.成员名 |
|||
-> |
成员选择(指针) |
对象指针->成员名 |
|||
2 |
– |
负号运算符 |
-表达式 |
右到左 |
单目运算符 |
(类型) |
强迫类型转换 |
(数据类型)表达式 |
|||
++ |
自增运算符 |
++变量名/变量名++ |
单目运算符 |
||
— |
自减运算符 |
–变量名/变量名– |
单目运算符 |
||
* |
取值运算符 |
*指针变量 |
单目运算符 |
||
& |
取地址运算符 |
&变量名 |
单目运算符 |
||
! |
逻辑非运算符 |
!表达式 |
单目运算符 |
||
~ |
按位取反运算符 |
~表达式 |
单目运算符 |
||
sizeof |
长度运算符 |
sizeof(表达式) |
|||
3 |
/ |
除 |
表达式/表达式 |
左到右 |
双目运算符 |
* |
乘 |
表达式*表达式 |
双目运算符 |
||
% |
余数(取模) |
整型表达式/整型表达式 |
双目运算符 |
||
4 |
+ |
加 |
表达式+表达式 |
左到右 |
双目运算符 |
– |
减 |
表达式-表达式 |
双目运算符 |
||
5 |
<< |
左移 |
变量<<表达式 |
左到右 |
双目运算符 |
>> |
右移 |
变量>>表达式 |
双目运算符 |
||
6 |
> |
大于 |
表达式>表达式 |
左到右 |
双目运算符 |
>= |
大于等于 |
表达式>=表达式 |
双目运算符 |
||
< |
小于 |
表达式<表达式 |
双目运算符 |
||
<= |
小于等于 |
表达式<=表达式 |
双目运算符 |
||
7 |
== |
等于 |
表达式==表达式 |
左到右 |
双目运算符 |
!= |
不等于 |
表达式!= 表达式 |
双目运算符 |
||
8 |
& |
按位与 |
表达式&表达式 |
左到右 |
双目运算符 |
9 |
^ |
按位异或 |
表达式^表达式 |
左到右 |
双目运算符 |
10 |
| |
按位或 |
表达式|表达式 |
左到右 |
双目运算符 |
11 |
&& |
逻辑与 |
表达式&&表达式 |
左到右 |
双目运算符 |
12 |
|| |
逻辑或 |
表达式||表达式 |
左到右 |
双目运算符 |
13 |
?: |
条件运算符 |
表达式1? 表达式2: 表达式3 |
右到左 |
3目运算符 |
14 |
= |
赋值运算符 |
变量=表达式 |
右到左 |
|
/= |
除后赋值 |
变量/=表达式 |
|||
*= |
乘后赋值 |
变量*=表达式 |
|||
%= |
取模后赋值 |
变量%=表达式 |
|||
+= |
加后赋值 |
变量+=表达式 |
|||
-= |
减后赋值 |
变量-=表达式 |
|||
<<= |
左移后赋值 |
变量<<=表达式 |
|||
>>= |
右移后赋值 |
变量>>=表达式 |
|||
&= |
按位与后赋值 |
变量&=表达式 |
|||
^= |
按位异或后赋值 |
变量^=表达式 |
|||
|= |
按位或后赋值 |
变量|=表达式 |
|||
15 |
, |
逗号运算符 |
表达式,表达式,… |
左到右 |
从左向右顺序运算 |
波比源码 » C语言运算符优先级
buy generic levofloxacin 500mg levofloxacin 500mg cheap
buy indomethacin cefixime 200mg oral generic amoxicillin 500mg
tadalafil kaufen generika viagra 50mg generika rezeptfrei kaufen viagra für männer
provigil 100mg brand provigil 200mg canada order generic acetazolamide
ramipril canada buy generic irbesartan 300mg astelin 10 ml oral
cost alendronate 70mg fosamax 70mg drug buy famotidine 40mg pills
imdur 20mg drug buy telmisartan 20mg online cheap micardis cost
buy molnunat brand cefdinir 300mg lansoprazole order
naltrexone 50 mg canada purchase aripiprazole online aripiprazole canada
order generic cialis 40mg buy viagra 100mg without prescription real viagra 100mg
order cialis 5mg without prescription anafranil 50mg pills generic anafranil 50mg
chloroquine 250mg for sale order cenforce pill olumiant 2mg brand
order generic norvasc 5mg viagra professional cheap cialis online
purchase zyvox online cheap play poker online real money online casino real money usa
buy dapoxetine sale cost dapoxetine 30mg order synthroid 100mcg online
cialis for men over 50 sildenafil 100mg pills for sale cost sildenafil 50mg
cost colchicine 0.5mg gloperba tablet best casino slot games
tamsulosin medication flomax 0.4mg drug spironolactone 25mg tablet
diflucan us sildenafil drug real viagra 100mg
cheap ceftin 250mg careprost uk order methocarbamol
free spins no deposit online casino bonus tadalafil canada
cheap deltasone 5mg deltasone 10mg us order amoxil generic
real money casino buy ed medications online tadalafil tablets
azithromycin 250mg price purchase azithromycin online cheap neurontin pill
order sildenafil 50mg online oral sildenafil 100mg budesonide order
order prednisone 10mg online cheap order vermox 100mg generic mebendazole 100mg cheap
tadacip over the counter buy generic diclofenac indocin 50mg cheap
buy proventil 100mcg without prescription order albuterol 100mcg for sale ciprofloxacin drug
buy pioglitazone 15mg online pioglitazone 30mg over the counter real viagra pharmacy prescription
order singulair generic montelukast for sale viagra tablet
cialis 5 mg Cialis online order cialis for sales
stromectol oral stromectol pills order dapsone 100mg pill
free poker online free spins no deposit usa help writing a paper
nifedipine medication order fexofenadine without prescription allegra 180mg sale
order ramipril 5mg sale ramipril oral order etoricoxib 60mg for sale
doxycycline 100mg without prescription ventolin inhalator order online cleocin pills
asacol 400mg usa buy irbesartan 300mg pills irbesartan 150mg pill
indocin us order indocin 50mg online cenforce 100mg cheap
buy minocin 50mg generic purchase minocin generic hytrin 1mg over the counter
order cialis 5mg pills best ed pills non prescription uk cheap erectile dysfunction pills online
buy glycomet 500mg for sale order nolvadex 20mg buy tamoxifen 10mg
brand provigil order promethazine pill buy phenergan generic
order clomiphene generic brand atorvastatin 80mg prednisolone tablets
accutane 10mg cost accutane 10mg ca acillin ca
stromectol coupon stromectol 6mg pills deltasone 40mg sale
zofran canada order zofran 8mg online cheap buy trimethoprim generic
order albuterol sale buy synthroid 150mcg for sale buy amoxiclav without prescription
modafinil 200mg pills buy generic lisinopril 5mg lopressor 50mg pills
generic prednisolone prednisolone 5mg tablet buy furosemide without prescription
purchase ditropan pill ditropan 2.5mg pill buy trileptal 600mg pill
buy simvastatin 10mg sale promethazine 25mg for sale sildenafil 200mg for sale
uroxatral usa alfuzosin 10mg drug order diltiazem online
order viagra 100mg sale levitra or viagra cialis generic
purchase promethazine generic purchase promethazine without prescription cheap cialis for sale
medex buy online zyloprim generic order allopurinol 100mg sale
cenforce price purchase cenforce generic glucophage 500mg uk
lipitor pill oral sildenafil 50mg sildenafil on line
buy letrozole 2.5mg generic femara 2.5mg for sale viagra 100mg cheap
order cialis 10mg sale buy ed meds online where to buy otc ed pills
ivermectin lotion for lice buy prednisone 40mg without prescription accutane 10mg over the counter
amoxil 250mg cost cheap amoxil generic buy prednisolone 5mg sale
albuterol 2mg over the counter buy synthroid 100mcg online levothyroxine online
monodox uk ventolin usa order generic amoxiclav
biltricide pills microzide 25 mg canada buy cyproheptadine for sale
zestril 5mg tablet order omeprazole 10mg sale lopressor 50mg canada
buy methotrexate 10mg pills methotrexate 5mg price order reglan 10mg sale
cost sumatriptan 25mg buy dutasteride tablets avodart 0.5mg for sale
order generic ranitidine 300mg buy celecoxib generic celebrex online order
generic tegretol purchase carbamazepine brand lincocin 500 mg
tadalafil 40mg usa tadalafil usa sildenafil overnight shipping
buy duricef 500mg generic propecia where to buy buy generic propecia
diflucan over the counter fluconazole tablet cipro 500mg us
how to buy flagyl flagyl without prescription buy keflex 250mg online
buy vermox sale generic mebendazole 100mg tadalafil 10mg cost
order avanafil buy avana tablets diclofenac 50mg uk
indocin 50mg tablet how to get indomethacin without a prescription suprax 100mg us
sildenafil usa suhagra buy online sildenafil 100mg price
isotretinoin 40mg oral buy isotretinoin generic how to get azithromycin without a prescription
cheap cialis sale purchase viagra online cheap price cialis
furosemide 100mg pill lasix tablet buy antihistamine pills onlin
ivermectin 0.2mg deltasone 10mg pills order deltasone 10mg pill
generic levitra 10mg zanaflex pill hydroxychloroquine 400mg pills
buy levitra generic purchase levitra sale generic plaquenil 200mg
asacol canada buy generic mesalamine for sale irbesartan 300mg sale
buy benicar sale order depakote 500mg without prescription buy depakote 250mg for sale
purchase temovate order cordarone without prescription order cordarone 100mg sale
cost coreg coreg online order order chloroquine pills
naprosyn 500mg oral naproxen 500mg without prescription buy lansoprazole tablets