How many vector container properties are there in C++?
Which of the following cannot be a friend?
How the sequence of objects can be accessed?
Which of these expressions will make the rightmost set bit zero in an input integer x?
Identify the error for the given program.
1. int main()
2. {
3. int x=5;
4. int arr[x];
5. arr[1]=12;
6. cout<<arr[1];
7. }
What will be the output of the following C code?
#include<stdio.h>
struct student
{
};
int main()
{
struct student s[2];
printf("%d", sizeof(s));
return 0;
}
What is a class in C++?
What is the output of the following C++ code?
#include
using namespace std;
class Base
{
public:
virtual void show() = 0;
};
class Derived : public Base { };
int main(void)
{
Derived q;
return 0;
}
What is the difference between references and pointers?
Consider the following ANSI C program
#include <stdio.h> int foo(int x, int y, int q) { if ((x<=0) && (y<=0)) return q; if (x<=0) return foo(x, y-q, q); if (y<=0) return foo(x-q, y, q); return foo(x, y-q, q) + foo(x-q, y, q); } int main( ) { int r = foo(15, 15, 10); printf(“%d”, r); return 0; }
The output of the program upon execution is
OnSite
1 Openings
FullTime
Posted 17 days ago