Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

Which of the following will assign the value to the class member variable num? void getnum(int

  Shared By: Gabriel Silva    Date: Jul 15    Category: C++ Programming    Views: 879

Answer:

Options

a) {num=a};
b) {num=a;}
c) {a=num};
d) {a=num;}

Answer : b) {num=a;}

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: