You are on page 1of 1

A Little bit of C

1. C Programming (Teach Yourself C in 21 Days)


a. Pointers
int* Ptr = (int *) 0x80000100;
int Val ;

// Write 0xfeedbead to address 0x80000100:


*Ptr = 0xfeedbead ;
// Read contents of address 0x80000100 into Val:
Val = *Ptr ;
// Initialize Ptr to address of Val (whatever that is):
Ptr = &Val ;

Question: What is the difference between


i. Val=*(Ptr++) ;
ii. Val =(*Ptr)++ ;

b. printf (http://microlabs.cs.utt.ro/~mmarcu/books/04/ch14.htm#Heading14)
i. %c for single character

/conversion/tmp/scratch/420888785.doc
Page 1 of 1

You might also like