Question 11
Question 13
Question 14
Predict output of the following program
#include <stdio.h>
int main()
{
printf("\new_c_question\b\r");
printf("geeksforgeeks");
getchar();
return 0;
}
Question 15
Fond out the time complexity of the program
int a = 0;
for (i = 0; i < N; i++) {
for (j = N; j > i; j--) {
a = a + i + j;
}
}
Question 16
Question 17
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 18
Output of following program?
#include <iostream>
using namespace std;
class Point {
Point() { cout << "Constructor called"; }
};
int main()
{
Point t1;
return 0;
}
Question 20
#include<iostream>
using namespace std;
class Point {
public:
Point() { cout << \"Constructor called\"; }
};
int main()
{
Point t1, *t2;
return 0;
}
There are 26 questions to complete.