Sunday, August 2, 2009

Pointer/Array Question?

Given the following definition:





int num[26] = {23, 3, 5, 7, 4, -1, 6};


int* pn;





write a test to check whether pn points beyond the end of num.





Please help me answer this question taken from my C programming textbook.

Pointer/Array Question?
if (pn %26gt; %26amp;num[25])





of course this assumes that you initialize pn correctly


No comments:

Post a Comment