c - char pointer initialization -


i have come across line given below

           char *ch=(char*)3000 

i want know meaning of line .....

it looks pointer, ch, being assigned absolute memory address 3000. bad idea, unless you're working on embedded system no paging , know exactly what's @ memory location 3000.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -