Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Data Structure Help

anshyaanshya Posts: 2Member
As a part of my project on data structures,I have prepared
a small test survey on data structure across three languages - C/C++/java.This survey will help me in collecting and comparing the level of understanding and complexity of the three languages among different programmers.
All interested fellow programmers please visit the link given below. It will also quick brush up your DS skills.
Help will be greatly appreciated. [smile.gif]
here is the link - ds-test.weebly.com

Comments

  • LundinLundin Posts: 3,711Member
    Took a quick look at it.

    There is an (unintended?) issue with the first program: you are using int rather than unsigned int. ISO C allows int to either be signed or unsigned, it is implementation-specific. On a compiler that sets int as unsigned by default, your code will crash upon accessing array index 0xFFFF (16-bit machine) or 0xFFFFFFFF (32-bit machine).

    Also, void main() will not work on any standard compiler for hosted environments (Windows, Linux etc).
Sign In or Register to comment.