Bundling data and functions together is called _____.
How many parameters are used in the frexp function?
Which of the following fundamental types is present in C++ but not in C?
//a is an array
1. a[5] = 0;
2. *(a+5) = 0;
is there any difference between above two steps ?
What is the correct syntax for declaring a virtual function?
What will be the output of the following C++ code?
What is the output of this C code?
void main()
{
int x = 0, y = 2, z = 3;
int a = x & y | z;
printf("%d", a);
}
#include<stdio.h>
int main()
{
char s[] = {'a', 'b', 'z', '\n', 'u', '\0'};
char *p, *str, *str1;
p = &s[3];
str = p;
str1 = s;
printf("%d", ++*p + ++*str1 - 32);
return 0;
}
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
class A {
public:
virtual void fun() { cout << "A::fun() "; }
};
class B: public A {
public:
void fun() { cout << "B::fun() "; }
};
class C: public B {
public:
void fun() { cout << "C::fun() "; }
};
int main() {
B *bp = new C;
bp->fun();
return 0;
}OnSite
1 Openings
FullTime
Posted 17 days ago