Hello Folks...
Just going through the templates... found one good question worth sharing
C++ allows the syntax type
template <class T>
T * ptr;
can this ptr be used to point to types likes int variable or float variable
ex: int i =10;
ptr = &i;
If this can be done plz share the syntax of doing it...
Comments will be appreciated...
Just going through the templates... found one good question worth sharing
C++ allows the syntax type
template <class T>
T * ptr;
can this ptr be used to point to types likes int variable or float variable
ex: int i =10;
ptr = &i;
If this can be done plz share the syntax of doing it...
Comments will be appreciated...
Comment