incorrec output,Why?

i wrote a simple program,but the output result are some strange float value instead of ten 10,Why?

In cudaMemcpy the size should be in bytes.

ooh! thank you !