what will be the output of the following code
output will be
8 8 8 4
size of a pointer to any data type is type independent , size of pointer depends on your machine address bus.
sizeof("clu") here "clu" is treated as array of characters ={'c','l','u','\0'}
so sizeof("clu") is 4 bytes
output will be
8 8 8 4
size of a pointer to any data type is type independent , size of pointer depends on your machine address bus.
sizeof("clu") here "clu" is treated as array of characters ={'c','l','u','\0'}
so sizeof("clu") is 4 bytes
No comments:
Post a Comment