How many sets of requirements are needed in designing a container?
Which of the following shows multiple inheritance?
Which of the following is a valid floating-point literal?
Which of the following methods cannot return multiple values?
What will be the output of the following C++ code?
Which operator in C++ has right-to-left associativity?
What happens when a structure is declared in C?
#include <stdio.h>
// macro with parameter
#define AREA(l, b) (l * b)
int main()
{
int l1 = 10, l2 = 5, area;
area = AREA(l1, l2);
printf("%d", area);
return 0;
}
What will be the output of the following C++ code?
#include <stdio.h>
#include <ctype.h>
int main()
{
int i;
char str[] = "jobs...";
i = 0;
while (isalnum(str[i]))
i++;
printf("%d\n", i);
return 0;
}
What will be the output of the following c code?
#include <stdio.h>
void p()
{
static int k;
++k;
printf("%d",k);
}
main()
{
p();
p();
p();
p();
}