using pointer to pointer(**)

T

Tony Johansson

Hello!

I have noticed that if you want to return an object from a method the
example
I have seen always use **.

Can somebody explain why?

//Tony
 
A

Andrey Tarasevich

Tony said:
I have noticed that if you want to return an object from a method the
example
I have seen always use **.

Can somebody explain why?

You need to provide an example of what you are talking about. So far It
doesn't make much sense.
 
J

Jobin Paul

Same opinion as of Andrey.

It doesn't make much sense without the example.

In C++ whatever you return are objects.

int A()
{
return 10; // if you are still doubt use return int(10);, i mean
call the integer contructor explicitly
}

this returns an object of type int.

there is no ** here ( not even *)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,792
Messages
2,569,639
Members
45,353
Latest member
RogerDoger

Latest Threads

Top