Vidyalelo
C++ Programming · Q886

C++ miscellaneous

Programming · C++ Programming · question 886

Q886

What is the correct syntax for declaring an allocator?

A.
template < class T > class allocator;
Answer
B.
template < class T > class;
C.
template class allocator;
D.
template class()

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board