I want to set all the index value to `-1` in a double array.  

Here is my code :

```
double dp[505];
memset(dp,-1,sizeof(dp));
cout<<dp[0]<<"\n";

```

But it is showing `nan` when i try to print its value. 

What does `nan` mean?
Is it possible to use `memset()` in double array?