Which members are inherited but are not accessible in any case?
What is the output of the following C code?
char str[] = "Hello world";
printf("\n %11s", str);
#include<stdio.h>
int main()
{
typedef int *i;
int j = 10;
i a = &j;
printf("%d", **a);
return 0;
}
What is the output of the following C code?
int main()
{
int a = 0;
while(++a++);
{
printf("Abekus");
}
return 0;
}
What is the output of the following C program?
int main()
{
int i = 10;
for(;;){
printf("%d", i);
}
}
What is the output of this C++ program?
#include<iostream>
using namespace std;
int main()
{
int i;
cout<<"Please enter an integer value:";
cin>>i;
cout<<i+4;
return 0;
}
Which classes are considered mixin classes?
What is the output of the following C program?
int main()
{
int i;
for(i=0; i<5; i++);
{
printf("cppbuzz");
}
return 0;
}
What will be the output of the following C++ code?
#include<stdio.h>
int main(int argc, char const *argv[])
{
char a = 'a';
printf("%d\n", (int)sizeof(a));
return 0;
}
Suppose we are sorting an array of eight integers using quicksort, and we have just finished the first partitioning with the array looking like this:
2 5 1 7 9 12 11 10
Which statement is correct?