if for example array is allocatable say of one dimension and
already allocated then is it automatically set all elements to 0?
I had always been doing
array=0
which i have also seen in the literature of other people doing
In fact i have been doing so for all arrays of any dimensions real or integer
Also to set all values equal to an arbitrary value or number
other than 0 I used
array=value
and also used
array)=value
and both seemed to work. Are both 'officially' acceptable ? More simply
is
array=value
always guaranteed to work no matter how many dimensions up to max 7
assuming the 'kind' etc. agree etc.
already allocated then is it automatically set all elements to 0?
I had always been doing
array=0
which i have also seen in the literature of other people doing
In fact i have been doing so for all arrays of any dimensions real or integer
Also to set all values equal to an arbitrary value or number
other than 0 I used
array=value
and also used
array)=value
and both seemed to work. Are both 'officially' acceptable ? More simply
is
array=value
always guaranteed to work no matter how many dimensions up to max 7
assuming the 'kind' etc. agree etc.