Logo 
Search:

C++ Programming FAQ

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

How will you assign value ‘5’ to the variable ‘x’ inside a member function using this pointer?

  Shared By: Daisy Brown    Date: Aug 11    Category: C++ Programming    Views: 942

Answer:

Options

a) this->x=5;
b) this.x=5;
c) x=5;
d) None of the above

Answer : a) this->x=5;

Share: 
 



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


Tagged: