- C言語なら俺に聞け
971 :デフォルトの名無しさん[]:2014/08/16(土) 03:57:25.73 ID:noAQ/N6w - 初心者だが、まとめていく
キャストは左シフトがわかれば、何ら問題はない unsigned char c; unsigned n = 0xff; c = (char)n; n >> 3; sizeofは型のときのみカッコでくくる fgets(foo.buf, sizeof foo.buf, stdin); p = (struct S *)malloc(sizeof(struct S)); constは const int *foo; int const *foo; int * const foo; const int * const foo; int const * const foo; のように、実に多種多様な形をとるので諦める
|
|