what does int *ptr=(int *)100 mean... i know its something to do with typecasting.Code:#include<stdio.h> int main(){ int *ptr=( int *)1000; ptr=ptr+1; printf(" %u",ptr); return 0; }
well output is 102... it's clear tat ptr initially is 100 and after ptr+1 it is now 102. But how is it represented in memory. please clear my doubts. thank you