Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C - C++ Learning > Re: C++ Puzzle ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 4296 of 4370
Post > Topic >>

Re: C++ Puzzle from Meebo page

by Fallen Angel <milkyway8754@[EMAIL PROTECTED] > Oct 6, 2008 at 06:51 PM

On Oct 7, 2:51=A0am, r...@[EMAIL PROTECTED]
 (Stefan Ram) wrote:
> Fallen Angel <milkyway8...@[EMAIL PROTECTED]
> writes:
> >1. With these variable declarations: int i, j[10], *k;
> >Which of the following are legal?
> >a. i =3D *(&(j[2]) + 1);
> >b. k =3D &(j[1]);
> >c. i =3D &(j[2]) + 1;
>
> =A0 =BBint i, j[10], *k;=AB is only /one/ declaration, consisting of
> =A0 the decl-specifier-seq =BBint=AB, the init-declarator-list
> =A0 =BBint i, j[10], *k=AB, and a semicolon =BB;=AB.
>
> =A0 A C++ program might be syntactically correct, but might have
> =A0 implementation specified or undefined behavior.
> =A0 It is not obvious what the term =BBlegal=AB refers to.
>

Are they looking if it is against the standards or something?
 




 1 Posts in Topic:
Re: C++ Puzzle from Meebo page
Fallen Angel <milkyway  2008-10-06 18:51:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 10:00:44 CST 2008.