In how many ways can the templates concept be used?
#define clrscr() 59
main()
{
clrscr();
printf("%d\n", clrscr());
}
Which of the two operators ++ and — work for the bool data type in C++?
Which function is used to read a single character from the console in C++?
predict the Output?
#include<stdio.h>
int main()
{
int a=5,b;
a=a+++a+++a;
printf("%d\n",++a);
}
Which memory allocation function will load all the assigned memory locations with the value 0?
What does the following C declaration mean?
int (*ptr) (char*);
#include <stdio.h>
int main()
{
int check = 20, arr[] = {10, 20, 30};
switch (check)
{
case arr[0]: printf("Abekus ");
case arr[1]: printf("Quiz ");
case arr[2]: printf("AbekusQuiz");
}
return 0;
}
What is the output of the following C program?
int main()
{
int j = 100;
printf("%s, %d is a good score%s", (j >= 100) ? "Yes" : "No", j, (1, "...OK"));
}