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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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