What is used to terminate a structure?
What will be the output of the following C++ code?
What will be the output of the following C++ code?
What will you use if you are not intended to get a return value?
What is the output of the following code?
#include <stdio.h>
int main()
{
static double x;
int y;
printf("x is %d", y);
return 0;
}
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int n;
n = -77;
cout.width(4);
cout << internal << n << endl;
return 0;
}
What is the correct function prototype for overloading the () operator?
Which of the following statements is correct?
What are the two main advantages of function objects over regular function calls?
What will be the output?
#include "stdio.h"
int main()
{
char a = 'a';
switch(a)
{
case 'a': printf("a"); break;
case 'b': printf("b"); break;
case 'c': printf("c"); break;
default: printf("default");
}
return 0;
}