Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: pointer [modified] Pin
S. Senthil Kumar26-May-06 20:42
S. Senthil Kumar26-May-06 20:42 
GeneralRe: pointer [modified] Pin
jith - iii26-May-06 22:30
jith - iii26-May-06 22:30 
GeneralRe: pointer [modified] Pin
Stephen Hewitt26-May-06 18:05
Stephen Hewitt26-May-06 18:05 
GeneralRe: pointer [modified] Pin
S. Senthil Kumar26-May-06 20:35
S. Senthil Kumar26-May-06 20:35 
AnswerRe: pointer [modified] Pin
Member 303984325-May-06 19:29
Member 303984325-May-06 19:29 
AnswerRe: pointer [modified] Pin
Saday Sarkar25-May-06 19:51
Saday Sarkar25-May-06 19:51 
GeneralRe: pointer [modified] Pin
jith - iii25-May-06 21:11
jith - iii25-May-06 21:11 
GeneralRe: pointer [modified] Pin
Stephen Hewitt26-May-06 18:25
Stephen Hewitt26-May-06 18:25 
An int* pointer can not (without perverse casting) point to a float. Simple pointers like the ones you're using will always be a fixed size; on 32-bit Windows this will be 4 bytes. The actual value of a pointer (the bit pattern in memory) indicates a location in memory where some data starts; the type of the pointer tells the compiler what type of data to expect. The example you gave will not compile - BUT if it did this is what it would be saying:
 Make the pointer "p" point the data for the variable "k". When the user indirects through the pointer "p" treat the data as if it was an integer.


Steve
GeneralRe: pointer [modified] Pin
jith - iii26-May-06 19:06
jith - iii26-May-06 19:06 
QuestionLinux's gettimeofday() equivalent for windows Pin
useme12325-May-06 18:41
useme12325-May-06 18:41 
AnswerRe: Linux's gettimeofday() equivalent for windows Pin
Ganesh_T25-May-06 18:51
Ganesh_T25-May-06 18:51 
GeneralRe: Linux's gettimeofday() equivalent for windows Pin
ThatsAlok25-May-06 22:18
ThatsAlok25-May-06 22:18 
AnswerRe: Linux's gettimeofday() equivalent for windows Pin
Nibu babu thomas25-May-06 18:53
Nibu babu thomas25-May-06 18:53 
AnswerRe: Linux's gettimeofday() equivalent for windows Pin
Ryan Binns25-May-06 18:57
Ryan Binns25-May-06 18:57 
QuestionAbout threading Pin
Aqueel25-May-06 18:30
Aqueel25-May-06 18:30 
AnswerRe: About threading Pin
Nibu babu thomas25-May-06 18:38
Nibu babu thomas25-May-06 18:38 
AnswerRe: About threading Pin
_AnsHUMAN_ 25-May-06 18:43
_AnsHUMAN_ 25-May-06 18:43 
AnswerRe: About threading Pin
ThatsAlok25-May-06 22:19
ThatsAlok25-May-06 22:19 
QuestionControl of a List Box Pin
Immunity1825-May-06 18:11
Immunity1825-May-06 18:11 
AnswerRe: Control of a List Box [modified] Pin
Nibu babu thomas25-May-06 18:20
Nibu babu thomas25-May-06 18:20 
GeneralRe: Control of a List Box [modified] Pin
Immunity1825-May-06 19:05
Immunity1825-May-06 19:05 
GeneralRe: Control of a List Box [modified] Pin
Nibu babu thomas25-May-06 19:08
Nibu babu thomas25-May-06 19:08 
GeneralRe: Control of a List Box [modified] Pin
Immunity1825-May-06 19:13
Immunity1825-May-06 19:13 
GeneralRe: Control of a List Box [modified] Pin
Nibu babu thomas25-May-06 19:15
Nibu babu thomas25-May-06 19:15 
GeneralRe: Control of a List Box [modified] Pin
Immunity1825-May-06 19:23
Immunity1825-May-06 19:23 

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.