Một số 사실 thú vị về C:
- Case label trong if-else: Có thể đặt
casebên trongiftrongswitch(Duff's device style). - a[i] == i[a]: Vì
a[i]=*(a+i)=*(i+a)=i[a]. - Thay [] {} bằng digraph:
<: :>thay[ ],<% %>thay{ }. - #include ở nơi lạ: Có thể
#include "file.txt"ngay trongprintf. - Bỏ qua input scanf:
%*dđọc nhưng không lưu:scanf("%*d%d", &x)bỏ số đầu, lưu số hai.
Ví dụ a[i] == i[a]
int a[10] = {11,22,33,44,55,66,77,88,99,110};
printf("%d %d", a[5], 5[a]); // Cả hai in 66