Fallen Angel <milkyway8754@[EMAIL PROTECTED]
> writes:
>1. With these variable declarations: int i, j[10], *k;
>Which of the following are legal?
>a. i = *(&(j[2]) + 1);
>b. k = &(j[1]);
>c. i = &(j[2]) + 1;
»int i, j[10], *k;« is only /one/ declaration, consisting of
the decl-specifier-seq »int«, the init-declarator-list
»int i, j[10], *k«, and a semicolon »;«.
A C++ program might be syntactically correct, but might have
implementation specified or undefined behavior.
It is not obvious what the term »legal« refers to.
Also, I do not see a »puzzle« but just a multiple-choice
question. A puzzle would require to find some solution,
not just to select one from one of eight possible answers.


|