Sponsored Links


Results 1 to 2 of 2

Thread: this pointer in c++

  1. #1
    Senior Member saneha's Avatar
    Join Date
    Apr 2011
    Posts
    266

  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    * this means that reference of this pointer.If a user wants to return reference to the current object from a function,in such cases reference is taken from this pointer like(*this).
    Example:
    student student::setRollNo(int aNo)
    {
    ...
    return *this;
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What is a Dangling pointer? Briefly explane with example.
    By Vuhelper in forum C++ Programing
    Replies: 0
    Last Post: 11-05-2011, 05:13 PM
  2. Pointer question??
    By Vuhelper in forum C++ Programing
    Replies: 0
    Last Post: 08-30-2011, 09:55 PM
  3. Dangling pointer memory leakage Data operations
    By saneha in forum C++ Programing
    Replies: 0
    Last Post: 05-02-2011, 05:43 PM
  4. Replies: 1
    Last Post: 05-02-2011, 04:48 PM
  5. const. pointer or pointer to const. char
    By saneha in forum C++ Programing
    Replies: 1
    Last Post: 04-29-2011, 08:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft