How can you force instantiation of a template?
Answer / bhargavi
You can force the instantiation of a specialization of the
template by specifying a prototype somewhere in your code.
Is This Answer Correct ? | 0 Yes | 0 No |
What is the importance of mutable keyword?
Which one is better- macro or function?
what is a reference variable in C++?
1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?
What are advantages of c++?
Is c++ an oop?
What is the use of 'using' declaration in c++?
Write a function that swaps the values of two integers, using int* as the argument type?
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
What is virtual table?
What is token c++?
How can virtual functions in c++ be implemented?