What is the output of the following C code?
What will be the output of the following C++ code?
Where is the abstract class used?
Before dereferencing a pointer, it is essential to assign a value to the pointer.
What is the output of the following program?
fu(m)
{
m++;
return (m);
}
int main()
{
int m=1;
m=fu(m=fu(m=fu(m)));
printf("%d",m);
}
How many times is 'Abekus' printed?
int main()
{
int a = 0;
while(a==0)
{
printf("Abekus");
}
return 0;
}
What is the output of the following program?
int main()
{
struct class
{
int rollno;
}stu1, stu2;
stu1.rollno = 14;
stu2.rollno = 20;
printf("%d", stu1.rollno);
printf("%d", stu2.rollno);
}
Pick the correct statement about pure virtual functions and virtual functions.
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
struct ShoeType
{
string style;
double price;
};
ShoeType shoe1, shoe2;
shoe1.style = "Adidas";
shoe1.price = 9.99;
cout << shoe1.style << " $ "<< shoe1.price;
shoe2 = shoe1;
shoe2.price = shoe2.price / 9;
cout << shoe2.style << " $ "<< shoe2.price;
return 0;
}