C1828: Illegal pointer-subtraction

[ERROR]

Description

A pointer was subtracted from an integral type.

Example
  void main() {

  
    int *p;

  
    int i;

  
    i-p;    // error

  
  }

  
Tips

Insert a cast operator from the pointer to the integral type.