Click here to Skip to main content
15,907,000 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CEdit & Enter Key Pin
Sujan Christo6-Oct-04 0:51
Sujan Christo6-Oct-04 0:51 
GeneralApplication slows down after running for hours Pin
Indrawati5-Oct-04 21:17
Indrawati5-Oct-04 21:17 
GeneralRe: Application slows down after running for hours Pin
Joaquín M López Muñoz5-Oct-04 21:22
Joaquín M López Muñoz5-Oct-04 21:22 
GeneralRe: Application slows down after running for hours Pin
2249175-Oct-04 21:22
2249175-Oct-04 21:22 
QuestionWhy would int be able to exceed its capacity? Pin
Link26005-Oct-04 20:09
Link26005-Oct-04 20:09 
AnswerRe: Why would int be able to exceed its capacity? Pin
PJ Arends5-Oct-04 20:28
professionalPJ Arends5-Oct-04 20:28 
AnswerRe: Why would int be able to exceed its capacity? Pin
Michael Dunn5-Oct-04 20:31
sitebuilderMichael Dunn5-Oct-04 20:31 
GeneralRe: Why would int be able to exceed its capacity? Pin
Link26005-Oct-04 21:28
Link26005-Oct-04 21:28 
Thanks guys.

This is the code from limits.h

<br />
#define INT_MAX       2147483647    /* maximum (signed) int value */<br />
#define UINT_MAX      0xffffffff    /* maximum unsigned int value */<br />
#define LONG_MIN    (-2147483647L - 1) /* minimum (signed) long value */<br />
#define LONG_MAX      2147483647L   /* maximum (signed) long value */<br />


The INT_MAX state that the max value is 2147483647, this is the same
max value in long int according to "The Complete Reference in C" by
Herbert Schildt. And look, the value of LONG_MAX is the same as INT_MAX
except for the additional L in the end.

Question 1:
Even the sizeof(int) and sizeof(long int) give the same value, 4. Does that
mean int can hold the same amount of integers as long int?

Question 2:
Another interesting fact is that, the max value of unsigned int is
FFFFFFFF, that is 4294967295, which is the double of MAX_INT. And
the value of FFFF is 65535, and that is the max value of what the
book said.

So, FFFFFFFF is 32-bit address, and FFFF is 16-bit address?
Is that right?


Question 3:
Oh, if computer is binary system, why would the memory address represent
in hex?


Thanks





-----------------------------
C++ without virtual functions is not OO. Programming with classes but without dynamic binding is called "object based", but not "object oriented".
GeneralRe: Why would int be able to exceed its capacity? Pin
jan larsen5-Oct-04 22:50
jan larsen5-Oct-04 22:50 
GeneralRe: Why would int be able to exceed its capacity? Pin
toxcct5-Oct-04 23:06
toxcct5-Oct-04 23:06 
GeneralRe: Why would int be able to exceed its capacity? Pin
jan larsen6-Oct-04 1:05
jan larsen6-Oct-04 1:05 
GeneralRe: Why would int be able to exceed its capacity? Pin
Arsalan Malik6-Oct-04 1:46
Arsalan Malik6-Oct-04 1:46 
GeneralRe: Why would int be able to exceed its capacity? Pin
markkuk6-Oct-04 1:54
markkuk6-Oct-04 1:54 
GeneralRe: Why would int be able to exceed its capacity? Pin
toxcct6-Oct-04 2:07
toxcct6-Oct-04 2:07 
GeneralRe: Why would int be able to exceed its capacity? Pin
Arsalan Malik6-Oct-04 2:21
Arsalan Malik6-Oct-04 2:21 
GeneralRe: Why would int be able to exceed its capacity? Pin
toxcct6-Oct-04 6:22
toxcct6-Oct-04 6:22 
GeneralRe: Why would int be able to exceed its capacity? Pin
unimatrics10-Oct-04 0:59
unimatrics10-Oct-04 0:59 
GeneralRe: Why would int be able to exceed its capacity? Pin
jan larsen6-Oct-04 2:13
jan larsen6-Oct-04 2:13 
GeneralRe: Why would int be able to exceed its capacity? Pin
Arsalan Malik6-Oct-04 2:22
Arsalan Malik6-Oct-04 2:22 
GeneralRe: Why would int be able to exceed its capacity? Pin
David Crow6-Oct-04 4:09
David Crow6-Oct-04 4:09 
GeneralProblems with .net Pin
Yulianto.5-Oct-04 19:28
Yulianto.5-Oct-04 19:28 
GeneralRe: Problems with .net Pin
2249175-Oct-04 20:19
2249175-Oct-04 20:19 
GeneralRe: Problems with .net Pin
Yulianto.6-Oct-04 17:54
Yulianto.6-Oct-04 17:54 
Generalversion control Pin
xcavin5-Oct-04 19:25
xcavin5-Oct-04 19:25 
GeneralRe: version control Pin
David Crow6-Oct-04 4:15
David Crow6-Oct-04 4:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.