The *
is part of the type.
book
is of type Book *
, that is a pointer to a Book
.
class Book {
};
Book * book1 = new Book();
Book * book2 = book1;
//now book1 and book2 point to the same Book
4
solved What is the significance of * in
The *
is part of the type.
book
is of type Book *
, that is a pointer to a Book
.
class Book {
};
Book * book1 = new Book();
Book * book2 = book1;
//now book1 and book2 point to the same Book
4
solved What is the significance of * in