[Solved] (CUDA C) Why is it not printing out the value copied from device memory?


Your code is correctly printing the value of c as 9. You need to clarify on the environment you are running this code.

2

solved (CUDA C) Why is it not printing out the value copied from device memory?