Why can templates only be implemented in the header file?
No Answer is Posted For this Question
Be the First to Post Answer
When must you use a pointer rather than a reference?
what is difference between internet and Internet?
12 Answers College School Exams Tests, Microsoft, MIT, TCS,
Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].
What is the main purpose of c++?
Why can you not make a constructor as const?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
What are c++ templates used for?
Can we get the value of ios format flags?
Explain how we implement exception handling in c++?
What is the default width for ouputting a long integer using the insertion operator?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.