The number of virtual tables created for a base class and a derived class is:
C accepts both lowercase and uppercase alphabets as variables and functions.
What type of programming language can produce new data types?
Which C++ constructors are provided by the compiler if not defined in a class?
Consider the following code snippet:
int x;
int y = (x=1) && (x=2);
The value of variable y equals
What is the value of the variable a after the following C code is executed?
int main()
{
int a=0;
a=14%5-2;
printf("%d",a);
return 0;
}
Which of the following statement is correct whenever an object goes out of scope?
What will be the output of the following C code?
(Assuming size of int is 4 bytes)
#include<stdio.h>
struct temp
{
int a;
int b;
int c;
} p[] = {0};
int main()
{
printf("%d", sizeof(p));
}
#include <iostream>
using namespace std;
int operate (int a, int b)
{
return (a*b);
}
double operate (double a, double b)
{
return (a/b);
}
int main ()
{
int x=5,y=2;
double n=5.0,m=2.0;
cout << operate (x,y) << '\n';
cout << operate (n,m) << '\n';
return 0;
}
What is the precedence when there are a global variable and a local variable in the program with the same name?