What will be output of below code : Code: int main(){ int n = 255, i; char *p = (char *)&n; for(i = 0; i < sizeof(int); i++) cout<<*(int *)(p + i)<<"\n"; return 0; }
int main(){ int n = 255, i; char *p = (char *)&n; for(i = 0; i < sizeof(int); i++) cout<<*(int *)(p + i)<<"\n"; return 0; }
There are currently 1 users browsing this thread. (0 members and 1 guests)
View Tag Cloud
Forum Rules
Bookmarks