What will be the output of the following C++ code?
What is the value of the variable c after executing the following C code?
#include <stdio.h>
int main()
{
int c = 2 ^ 3;
printf("%d\n", c);
}
What will be the output of the following C code?
#include<stdio.h>
int main()
{
int k=0;
for(k);
printf("Hello");
}
What is the output of the program given below?
# include <stdio.h>
# define scanf "Abekus Abekus "
int main()
{
printf(scanf);
return 0;
}
The pre-order and in-order traversals of a binary tree are T M L N P O Q and L M N T O P Q. What is the post-order traversal of the tree?
Which of the following statements is correct?
What is an inline function?
What is a pure virtual function in C++?
What is the output of the following C program?
int main()
{
char str1[]={'U','V','C','E'};
char str2[]={'U','V','C','E','\0'};
while(strcmp(str1,str2))
printf("Strings are not equal");
}
int three = 3;
cout << "There are " << "three" << " stooges" << endl;
cout << "Curly is my favorite of the " << three << endl;