Programming - Functions - Discussion

You Are Here :: Home > C++ Language > Functions - Discussion

 



Q.

The function call below is designed to return, in variable result, the product of x and y. All the variables are of type int. What is the correct prototype for such a function?
myFunction(&result, &x, &y);                         


A. void myFunction(int, int, int) ; B. void myFunction(int *, int *, int *) ;
C. void myFunction(const int *, const int *, const int *) ; D. void myFunction(int *, const int *, const int *) ;

Answer: Option D
Explaination:

 


No Explanation




Discussion

Your Comments Goes here...
NameDiscussion