I have some code where norms
is declared as a double array of size 3 x 2. I would like to output norms[0]
to the console.
#include <iostream>
using namespace std;
double norms[3][2];
_cal_norm(dept,size,max_posn,norms[0]);
cout << norms[0];
I would like to have the double value returned. I have tried using cout << norms[0]
to return it. But it returns the following instead:
norms[0] 1 0x7fff33d52180
Is there a way for me to see the double value?