Q:

IS POINTER ARITHMETIC A VALID ONE? WHICH ARITHMETIC OPERATION IS NOT VALID IN POINTER? WHY?

belongs to collection: C INTERVIEW QUESTIONS AND ANSWERS

0

IS POINTER ARITHMETIC A VALID ONE? WHICH ARITHMETIC OPERATION IS NOT VALID IN POINTER? WHY?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Pointer arithmetic is not valid one. Pointer addition, multiplication and division are not allowed as these are not making any sense in pointer arithmetic.

But, two pointers can be subtracted to know how many elements are available between these two pointers.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C INTERVIEW QUESTIONS AND ANSWERS

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
IS VOID POINTER ARITHMETIC A VALID ONE? WHY?... >>
<< WHAT IS CONST POINTER IN C?...