I had written a code in c for read and write the data to internal EEPROM as a char.Now I want to wriye it as a int or float then what i have to do? Is it any way to access the the int as a char so that i can divide the int in two char and pass it to Write function.
Portable, possibly slower: use mask-and-shift; Non-portable, possibly faster: use a union, or pointers. All of this has been discussed in great detail before; eg, http://www.keil.com/forum/docs/thread1127.asp
Can u please tell how to do with pointers. If i want to access the next memory location (Not the pointer type,means in case of int ptr++ it will increment 2 bytes) then what i have to do in C
Can u please tell how to do with pointers. since you are specifically asking 'micro' wait for him to answer
Is it there any way to access the next memory location through C