3 Replies - 265 Views - Last Post: 03 January 2013 - 07:54 AM Rate Topic: **--- 1 Votes

#1 NitinJotwani  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 28-September 12

how to check Bit version of DevCpp

Posted 03 January 2013 - 02:04 AM

as i was playing with datatypes, and getting different results on Turbo C & DevCpp
But i knew that my Turbo C is of 16 bit
& so im comfortable with ranges of datatypes..

But the problem is, how should i come to Bit version of DevCpp i.e. whether it is 16 or 32bit
Don't want to know the versio of DevCpp like 4.9.9.2, tell me BIT Version
Is This A Good Question/Topic? 0
  • +

Replies To: how to check Bit version of DevCpp

#2 AKMafia001  Icon User is offline

  • </code.in.dream>

Reputation: 187
  • View blog
  • Posts: 624
  • Joined: 11-June 11

Re: how to check Bit version of DevCpp

Posted 03 January 2013 - 02:56 AM

If I didn't get you wrong, I think you wanted to know that Dev-C++ is 32-bit...

Well! The size of the data types depend on the compiler, Operating System, and the architecture... It may vary from compiler to compiler, OS to OS, and architecture to architecture...

And, if you know that turbo-c is that old and is 16-bit; Why you are still using it? Even Dev-C++ is outdated too...

You have to get a latest compiler which is compliant with the standards... You can use the Code::Blocks IDE it comes with MinGW compiler...
Was This Post Helpful? 0
  • +
  • -

#3 NitinJotwani  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 28-September 12

Re: how to check Bit version of DevCpp

Posted 03 January 2013 - 03:33 AM

I know it is 32 Bit
came to know that it is 32 bit version with the help of datatypes as compared to 16 bit..
But im asking is there any other way to recognize tht it is 32Bit <b>Officialy</b>
Was This Post Helpful? 0
  • +
  • -

#4 jimblumberg  Icon User is offline

  • member icon


Reputation: 3991
  • View blog
  • Posts: 12,315
  • Joined: 25-December 09

Re: how to check Bit version of DevCpp

Posted 03 January 2013 - 07:54 AM

Quote

But the problem is, how should i come to Bit version of DevCpp i.e. whether it is 16 or 32bit

Since DevCpp is officially a 32 bit compiler, what is your actual question?

If you want to know the "limits" of your variables try printing things like "INT_MIN", "INT_MAX" which are defined in the limits.h header file. Also to get an general idea you could try printing the sizeof() your data types and pointers.

But to answer the primary question, you the programmer should know whether your compiler and operating system is 16, 32, or 64 bit.

Jim
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1