Reading C type declarations(参照http://unixwiz.net/techtips/reading-cdecl.html)
947 ワード
Even relatively new C programmers have no trouble reading simple C declarations such as
This Tech Tip shows how to do it.
私たちはしばしば複雑なC声明に出会います。これらの声明をどう読むかについて、ここで外国語の文章を記録しています。
http://unixwiz.net/techtips/reading-cdecl.html
int foo[5]; // foo is an array of 5 ints
char *foo; // foo is a pointer to char double foo(); // foo is a function returning a double
but a s the declarations get a bit more involved,it's more difficult to know exactly what you're looking at.char *(*(**foo[][8])())[]; // huh ?????
It turns out that the rules for reading an arbitrarly-complex C variable declaration arease learned by even begining programmers(though how to actually) アメリカ the variable so declead may be well out of reach)This Tech Tip shows how to do it.
私たちはしばしば複雑なC声明に出会います。これらの声明をどう読むかについて、ここで外国語の文章を記録しています。
http://unixwiz.net/techtips/reading-cdecl.html