2
Reply

Diff B/W Scalar and Vector DataTypes?

vasu madhala

vasu madhala

16y
5.5k
0
Reply

    A scaler type is a simple number in one dimension(representing the variable in single dimension).

    eg: double i ;

    A vector type is the representation of a type in more than onedimension.

    eg:

    struct vector

    {

    public double x,y,z;

    public vector(double x,double y,doublez)

       {

            this.x=x;

            this.y=y;

            this.z=z;

       }

    .........I think so

    I believe it's merely that scalar types are singular, vector types are multiple (collections, tuples).