Exforsys
+ Reply to Thread
Results 1 to 3 of 3

Is Operations Possible

This is a discussion on Is Operations Possible within the C and C++ forums, part of the Programming Talk category; Is it possible to do arithmetic operations on a void * pointer. If not why cannot one perform the same. ...

  1. #1
    caradoc is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    122

    Exclamation Is Operations Possible

    Is it possible to do arithmetic operations on a void * pointer. If not why cannot one perform the same. Kindly provide reasons for that.


  2. #2
    Rahulbatra is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    124
    Pointer arithmetic is nothing but performing arithmetic operations on a pointer. Pointer arithmetic cannot be performed on void pointers because the void type has no size and thus the pointed address cannot be added to.


  3. #3
    Sandhya.Kishannag is offline Member Array
    Join Date
    Feb 2012
    Answers
    66
    Is it not possible to do arithmetic operations on a void * pointer because void has no return type and size.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...