C
- voluntas
- @ignis_fatuus
- ブン
- @Linda_pp
- 清楚なC++メイドBOT
- @tzik_tack
- 長谷川一輝
- wraith13
- @jj1bdx
- @cpp_akira
- 安藤敏彦
- @srz_zumix
- Siv3D
- @okdshin
- @hnokx
- @ishidakei
- @take_cheeze
- TAKEI Yuya
- @mumumu
- I (@wx257osn2)
- Tommy6
- わたやん
- @KorekaraSEDB
- @kariya_mitsuru
- @ciniml
- @beam2d
- @grafi_tt
- @nekketsuuu
- LouiS0616
- @volanja
- 大鎌広
- むてら
- ガチKGB
- 三重野賢人
x
20
1
2
int main(void)
3
4
{
5
/* struct foo{
6
int x, y, z;
7
};
8
9
struct foo a;
10
struct foo *b;
11
b = &a;
12
b->x = 12;
13
printf("%i\n",b->x);
14
*/
15
16
17
FILE *fp;
18
fp->_ptr="CX";
19
printf("%s\n",fp->_ptr);
20
}
$ gcc prog.c -Wall -Wextra -std=gnu11
Stdin
2 3
Start
prog.c: In function 'main': prog.c:18:6: error: 'FILE' has no member named '_ptr' 18 | fp->_ptr="CX"; | ^~ prog.c:19:20: error: 'FILE' has no member named '_ptr' 19 | printf("%s\n",fp->_ptr); | ^~
1
Finish