Can you use int and char as identifiers?
What will be the output of the following C++ code?
Which class is used to design the base class?
Which function is used to convert a date and time into a calendar format?
Which of the following does not require instantiation?
#define sqr(x) (x*x)
int main()
{
int x, y = 1;
x = sqr(y + 1);
printf("%d", x);
return 0;
}
What is Inheritance in C++?
#include
void main()
{
char *s1;
char far *s2;
char huge *s3;
printf("%d %d %d", sizeof(s1), sizeof(s2), sizeof(s3));
}
Identify the correct sentence regarding inequality between reference and pointer.
What is the output of the following C program?
void main()
{
struct emp
{
char name[20];
int age;
float sal;
};
struct emp e={"scott"};
printf("%d %f",e.age,e.sal);
}