Home > Back-end >  C address of the adjacent elements of the elements in an array only to 1
C address of the adjacent elements of the elements in an array only to 1

Time:03-30

 # include & lt; iostream> 
#include
using namespace std;

Int main ()
{
Vector K;
Written by K.r esize (5);
Int a=& amp; K [1] - & amp; K [0];
Int b=& amp; K [2] - & amp; K [0];
Int c=& amp; K [3] - & amp; K [2];
cout }

The result of the running for the
 1 2 1 

CodePudding user response:

Because K [1]... These are all double
& K [...]. The delegates is double *
So & amp; K [1] - & amp; K [0] is 1, the length of the 1 represents a double

  • Related