Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ones compliment of zero Pin
spicy_kid200021-Sep-08 21:19
spicy_kid200021-Sep-08 21:19 
QuestionRe: ones compliment of zero Pin
CPallini21-Sep-08 21:28
mveCPallini21-Sep-08 21:28 
AnswerRe: ones compliment of zero Pin
spicy_kid200021-Sep-08 21:36
spicy_kid200021-Sep-08 21:36 
GeneralRe: ones compliment of zero Pin
Cedric Moonen21-Sep-08 21:40
Cedric Moonen21-Sep-08 21:40 
GeneralRe: ones compliment of zero Pin
spicy_kid200021-Sep-08 21:47
spicy_kid200021-Sep-08 21:47 
GeneralRe: ones compliment of zero Pin
Cedric Moonen21-Sep-08 21:49
Cedric Moonen21-Sep-08 21:49 
GeneralRe: ones compliment of zero Pin
CPallini21-Sep-08 21:52
mveCPallini21-Sep-08 21:52 
GeneralRe: ones compliment of zero Pin
CPallini21-Sep-08 21:49
mveCPallini21-Sep-08 21:49 
spicy_kid2000 wrote:
if it a unsigned int, it should be 2 ^32 -1

Good. The following snippet may possibly confirm you opinion
void main()
{
  unsigned int u = 0;
  u = ~u;
  printf("%u (%x)\n", u, u);
}

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: ones compliment of zero Pin
enhzflep21-Sep-08 21:37
enhzflep21-Sep-08 21:37 
QuestionChange Date format Pin
manju#12321-Sep-08 20:29
manju#12321-Sep-08 20:29 
AnswerRe: Change Date format Pin
Cedric Moonen21-Sep-08 20:35
Cedric Moonen21-Sep-08 20:35 
AnswerRe: Change Date format Pin
_AnsHUMAN_ 21-Sep-08 20:36
_AnsHUMAN_ 21-Sep-08 20:36 
AnswerRe: Change Date format Pin
enhzflep21-Sep-08 20:45
enhzflep21-Sep-08 20:45 
AnswerRe: Change Date format Pin
Sandeep Saini SRE22-Sep-08 1:24
Sandeep Saini SRE22-Sep-08 1:24 
AnswerRe: Change Date format Pin
David Crow22-Sep-08 3:29
David Crow22-Sep-08 3:29 
Questionvariable reflection in class Pin
SeshaSridhar21-Sep-08 20:29
SeshaSridhar21-Sep-08 20:29 
AnswerRe: variable reflection in class Pin
_AnsHUMAN_ 21-Sep-08 20:38
_AnsHUMAN_ 21-Sep-08 20:38 
GeneralRe: variable reflection in class Pin
SeshaSridhar21-Sep-08 20:56
SeshaSridhar21-Sep-08 20:56 
QuestionUsing MySQl with VC++ Pin
tony_Udz21-Sep-08 20:27
tony_Udz21-Sep-08 20:27 
AnswerRe: Using MySQl with VC++ Pin
Rajesh R Subramanian21-Sep-08 20:41
professionalRajesh R Subramanian21-Sep-08 20:41 
AnswerRe: Using MySQl with VC++ Pin
nguyenbinh0721-Sep-08 22:01
nguyenbinh0721-Sep-08 22:01 
AnswerRe: Using MySQl with VC++ Pin
Sandeep Saini SRE22-Sep-08 1:33
Sandeep Saini SRE22-Sep-08 1:33 
GeneralRe: Using MySQl with VC++ Pin
tony_Udz22-Sep-08 2:20
tony_Udz22-Sep-08 2:20 
GeneralRe: Using MySQl with VC++ Pin
Sandeep Saini SRE22-Sep-08 17:16
Sandeep Saini SRE22-Sep-08 17:16 
QuestionBad Ptr Pin
T.RATHA KRISHNAN21-Sep-08 20:18
T.RATHA KRISHNAN21-Sep-08 20:18 

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.