can I malloc a buffer whose elements are 0?

can I malloc a buffer whose elements are 0? or I need to do it myself?

thanks :)

cudaMemset