C++
x
25
1
2
using std::cout;
3
using std::endl;
4
5
long double value[83][4];
6
7
void x() {
8
9
value[0][0] = 0.1227960;
10
value[0][1] = 0.0050900;
11
value[0][2] = -0.0183360;
12
13
cout << value[0][0] << endl; // Here in x it displays 0.1227960
14
}
15
16
17
int main() {
18
19
x();
20
cout << value[0][0] << endl; // Here displays nan
21
cout << value[0][1] << endl; // Here it displays 0.0050900
22
cout << value[0][1] << endl; // Here it displays -0.0183360
23
24
return 0;
25
}
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic
Start
0.122796 0.122796 0.00509 0.00509
0
Finish