c - What does *int mean? -
i know pointer is, during coding exercises had typo , instead of int*
used *int
.
i understand it's wrong, mean in c (e.g syntactically valid)? static semantics ? undefined?
couldn't figure out compiler warnings.
edit: (relevant compiler warnings)
void input(*int ,*int );
:10: error: expected primary-expression before "int" :10: error: expected primary-expression before "int" :10: error: initializer expression list treated compound expression
no, it's syntax error. can't part of multiplication since there cannot identifier name of keyword.
the way make valid part of c program is
- as part of string literal
- as part of multibyte character constant
- as part of comment
- when
int
macro expanding else makes valid - within
#ifdef
'ed out code segment - something else forgot
Comments
Post a Comment