This is with ref to the code http://wind.d.umn.edu/acmclub/sites/default/files/summation.cu provided at http://wind.d.umn.edu/acmclub/?q=node/12 Im a beginner programmer but still I could follow the code and explanation except for few things.
1.] What is the meaning of "new" in this line taken from summation.cu
sum_h = new unsigned long();
2.]Also I really couldnt understand this code. What purpuse does strtoul serve ? I'd be thankful if you could point to some beginners resource on "new" & "strtoul"
n = strtoul(argv[1], NULL, 0);
3.] Is the code "summation.cu" written completely in C++. So inorder to code CUDA programs do I need to learn C++ instead of C? Or do I need to learn both C & C++ ?