1.

#include <iostream>using namespace std;template <typename T>void loopIt(T x){   int num=3;	T lfc[num];	for(int p = 0; p < num; p++)	{		lfc[p] = x++;        cout <<  lfc[p] << endl;    }};int main(){	float q = 2.1;	loopIt(q);} 
13.What is the output of this program?

A. Compiler Error in last cout statement as call to maximum is ambiguous
B. Compiler Error in all cout statements as data type is not specified
C. 7 7.0 7.0
D. None of the above
Answer» B. Compiler Error in all cout statements as data type is not specified


Discussion

No Comment Found

Related MCQs