C++ | Templates | Question 5
Output of following program? Assume that the size of char is 1 byte and size of int is 4 bytes, and there is no alignment done by the compiler.
(a) << endl;
(b) << endl;
(C) Compiler Error: There can not be more than one template arguments.
Explanation: Since count is static, it is not counted in sizeof.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important C++ Foundation and STL concepts with the C++ Foundation and STL courses at a student-friendly price and become industry ready.