Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/20/03 08:54
Read: times


 
#39521 - RE: Arrays of structures
Responding to: ???'s previous message
you have

pointer=whatsit[4]; // corrupt pointer

you want

pointer=&(whatsit[4]);

or

pointer=&whatsit[4];

Kernighan and Ritchie (K&R), The C Programming Language, 2nd ed., 1988, p. 98.

james


List of 9 messages in thread
TopicAuthorDate
Arrays of structures            01/01/70 00:00      
   RE: Arrays of structures            01/01/70 00:00      
   RE: Arrays of structures            01/01/70 00:00      
      RE: Arrays of structures            01/01/70 00:00      
   RE: Arrays of structures            01/01/70 00:00      
      RE: Arrays of structures            01/01/70 00:00      
   RE: Arrays of structures            01/01/70 00:00      
      RE: Arrays of structures            01/01/70 00:00      
   RE: Arrays of structures            01/01/70 00:00      

Back to Subject List