Slideshow

Monday 25 February 2013


Are the following statements valid? Justify your answer
(i) k = (char*)& m
(ii) m= (float*)& p (4)
Ans:

Type of m is not known. If it is of type other than char and k is a pointer to char type
then statement is valid otherwise it is invalid. Similarly, second statement is valid if m
is a pointer to float and p is of type other than float and pointing to more thant four BYTES

No comments:

Post a Comment