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 4299 of 4370
Post > Topic >>

Re: C++ Puzzle from Meebo page

by Fabiano <fabfake@[EMAIL PROTECTED] > Oct 7, 2008 at 06:28 PM

Fallen Angel ha scritto:
> From a discussion at Hacker News (
http://news.ycombinator.com/item?id=323863
> ), I came to this page where there is a couple of C++ puzzles are
> listed. Can anyone put thier views about it :
> 
> 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;
> 
> http://www.meebo.com/jobs/openings/server/
> 
> Thanks

the a. looks "type" correct.
 




 1 Posts in Topic:
Re: C++ Puzzle from Meebo page
Fabiano <fabfake@[EMAI  2008-10-07 18:28:28 

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 8:04:18 CST 2008.