Which feature do templates simulate?
Which C++ container is best suited for storing large objects?
How many parameters are passed to the main() function in C++ to use command-line arguments?
Which of the following is used to implement C++ interfaces?
What will be the output of the following C code?
#include<stdio.h>
int main()
{
int i=2;
int j=++i + i;
printf("%d\n",j);
}
What is the meaning of the following declaration?
int(*p[5])();
What is the output of the following program?
#include<stdio.h>
int main()
{
char *str1="Science";
int num=5;
printf(num > 10 ? "%s" : "Computer %s", str1);
return 0;
}
How access specifiers in Class helps in Abstraction?
What will be the output of the following C++ code?
#include<iostream>
using namespace std;
int main()
{
int n1;
float n2;
cin>>n1;
cin>>n2;
cout<<n1 <<" "<<n2<<endl;
return 0;
}
Suppose the user enters n1 as 10.5 and n2 as 1.