Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
C++ Programming FAQ
Submit Interview FAQ
Home
»
Interview FAQ
»
C++ Programming
RSS 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:
1034
Answer:
Options
a) this->x=5;
b) this.x=5;
c) x=5;
d) None of the above
Answer : a) this->x=5;
Share:
Previous Post:
What is the output of the below code 1?
Next Post:
Consider a class X, which includes a virtual function called X_output.
Didn't find what you were looking for? Find more on
How will you assign value ‘5’ to the variable ‘x’ inside a member function using this pointer?
Or get
search suggestion and latest updates
.
Related Topics:
Which of the following will assign the value to the class member variable num? void getnum(int
Define a namespace called ‘samplespace’, which includes a member variable,namely ‘p’
Identify the variables, which are local to the following function
Which class does define the member function put()?
What is the general format of calling a static member function using a class name?
Which of the following programming approach used functions as a key concept to perform actio
Which of the following is not true about static member variable?
Which casting operator can cast a pointer to any other type of pointer in ANSI C++?
When you call a function by passing the address of a data variable, it is know as which option
Which of the following is true about pointers?
Which of the following will be used to access the two entries, namely key and value of the map?
What is Stack Pointer?
Which overloads a unary minus operator and returns no values - Select option
Which of the following is not true about member functions?
Which functions can have access to the private and protected members of a class?
Which OOP feature can be enabled by using private declaration for the class members?
Does C# support a variable number of arguments?
Identify the valid variable name from which options
The declaration of global variables must be made in which option
Identify which function prototype exhibits the following: Name of the function is sample_cal
Your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
Tagged:
how
will
you
assign
value
5
to
the
variable
x
inside
member
function
using
this
pointer
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Unix / Linux / Ubuntu
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint