Pointer declaration for class, C/C++ Programming

Pointer declaration for Class:

M m;

M *pm; //Class M is declared as pointer pm=&m;//Pointer class is assigned to a class

Posted Date: 9/20/2012 8:02:10 AM | Location : United States







Related Discussions:- Pointer declaration for class, Assignment Help, Ask Question on Pointer declaration for class, Get Answer, Expert's Help, Pointer declaration for class Discussions

Write discussion on Pointer declaration for class
Your posts are moderated
Related Questions
Program is to store first n natural no in a file: Write a program to  store first n natural no in a file void main()     {     fstream file;     file.open("studen

Car Rental System This system tracks cars in a rental company. Each car has a number (assume its plate number), type (small car, four wheel car), and status (rented, available). T

A: A smart pointer is a C++ class which mimics a regular pointer in syntax and some semantics, however it does more. Since smart pointers to distinct types of objects tend to have

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes

Define One's Complement Operator? The one's complement operator, occasionally called the "bitwise NOT" or "bitwise complement" operator produces the bitwise one's complement of

Program is to replace every occurrence of in a string: Program is to replace every occurrence of c1 in string with c2 and have function return the no. of replacement int re

Static Data Members: A data member inside the class can construct as static data member.   There are few guidelines to be followed when declaring static data member.

Need assignment help What's the order that local objects are destructed?

The continue statement The continue statement causes the next iteration of the enclosing loop to start. When this is encountered in the loop , the rest of the statements in the

Define the Category of Function? A function, depending on whether arguments or parameters are present or not and whether a value returned or not, may belong to one of the foll