Hi
Q what is difference between Typename and Class in C++?
Q what is difference between typedef and typename?
Thanks
Pallav Singh
Hi Pallav
I assume it isn't a homework.
typename is a keyword which mainly used in programming templates.
class is the
most important fundamental concept in C++. It is used for design and
implementation of user-defined type.
typedef is used for somehow introducing a new name for a type (built-
in and user-defined).
They are vey different in nature and usage.
"typedef" is C/C++ keyword but "class" and "typename" belongs to C++.
I really don't want to be precise.
Use C++ FAQ and The C++ Programming Language by Bjarne Stroustrup for
details
and of course start C++ programming.
Good luck,
-- Saeed Amrollahi