Which of the following is an indirection operator?
A variable defined within a block is visible:
What does ‘\a’ escape code represent?
Which function is used to check whether a vector is empty or not?
How compile-time polymorphisms are implemented in C++?
A function which is used to replace the implementation provided by the base class is called:
What is the output of the following program?
main()
{
char *a[4]={"","oracle","java"};
printf("%d %d",sizeof(a),sizeof(char*));
}
#include<stdio.h>
int main()
{
int a, b;
a = 1;
b = 2;
{
int a = 10;
a++;
b++;
}
printf("%d %d", a, b);
}
Consider the two code snippets below for printing a vector. Is there any advantage of one version over the other?