Skip to content Skip to sidebar Skip to footer

-nan(ind) C++ Code Example


Example: nan c++ example

#include <iostream> #include <cmath> using namespace std;  // main() section int main() {     double nanValue;          //generating generic NaN value     //by passing an empty string     nanValue = nan("");          //printing the value      cout<<"nanValue: "<<nanValue<<endl;          return 0; }

Post a Comment for "-nan(ind) C++ Code Example"