Question 31
#include <stdio.h>
int main (void)
{
int shifty;
shifty = 0570;
shifty = shifty >>4;
shifty = shifty <<6;
printf(\"the value of shifty is %o\",shifty);
}
Question 32
Question 33
Question 35
Output of following C++ code will be?
#include <iostream>
using namespace std;
class X
{
public:
int x;
};
int main()
{
X a = {10};
X b = a;
cout << a.x << " " << b.x;
return 0;
}
Question 36
Output of following program?
#include <iostream>
using namespace std;
class Point {
Point() { cout << "Constructor called"; }
};
int main()
{
Point t1;
return 0;
}
Question 37
Given that x = 7.5, j = -1.0, n = 1.0, m = 2.0 the value of - - x + j == x>n> = m is:
Question 39
#include "stdio.h" int main() { int x, y = 5, z = 5; x = y == z; printf("%d", x); getchar(); return 0; }
Question 40
#include <stdio.h>
int main()
{
int i = 3;
printf(\"%d\", (++i)++);
return 0;
}
What is the output of the above program?
There are 41 questions to complete.