Archived

This topic is now archived and is closed to further replies.

robertocarlos

Interesting questions

Recommended Posts

I''m relatively new to programming. Am looking for some programming questions that are interesting Eg. how do you swap 2 no''s without using a third variable. Also questions asked in interviews, to test your programming skills. Any questions or pointers to resources will be appreciated. The sky is the limit !

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:

how do you swap 2 no''s without using a third variable.


Can''t be done...
Well, it can, but you can only swap two 32 bit integers without using a third, unless they''re both less than 2^16 (so you''ve got 16 bits for the swaping)...

You can find tons, and tons of great questions in the articles and resources section...

Share this post


Link to post
Share on other sites