So what would be the size of this array in bytes if on a 32 bit machine: double *arr[4] ;
wschamps42 0
Newbie Poster
Recommended Answers
Jump to Post
4 * sizeof(double*)
bytes. You can't assume the size of a pointer, so the 32-bit machine part is irrelevant to the question.
All 4 Replies
deceptikon 1,790
Code Sniper Team Colleague Featured Poster
MRehanQadri 0
Junior Poster in Training
deceptikon 1,790
Code Sniper Team Colleague Featured Poster
rubberman 1,355
Nearly a Posting Virtuoso Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.