In an array we can do
int arr[100]={0} ,this initializes all the values in the array to 0.
I was trying the same with vector like
vector <int> v(100)={0} ,but its giving the error
error: expected ‘,’ or ‘;’ before ‘=’ token. Also if we can do this by "memset" function of C++ please tell that solution also.