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
Want to learn from the best curated videos and practice problems, check out the C Foundation Course
for Basic to Advanced C.