#include statement must be written before which statement?
How do we declare a float pointer?
Which header file is used for generating random numbers in C++?
#include<stdio.h>
int main()
{
printf("Hello world");
main();
return 0;
}
How many different insertion sequences of the key values using the same hash function and linear probing will result in the hash table shown above?
What is the output of the following C code?
int main()
{
int var1=15, var2=10, p, q;
p = var1 > 14;
q = var1 > 8 && var2 == 10;
printf("%d %d", p, q);
}
What is the output of the following C program?
int main()
{
int p=10, q=10, r=10;
p = p << 2 >> 1;
r = r << 2 >> 1;
printf("%d %d %d", p, q << 2 >> 1, r);
}
Convert the following infix expression to postfix form using a stack:
x + y * z + (p * q + r) * s. Follow the usual precedence rules and assume that the expression is legal.
What are the actual parameters in C++?
What will be the output of the following program in both C and C++?
#include<stdio.h>
int main(int argc, char const *argv[])
{
printf("%d\n", (int)sizeof('a'));
return 0;
}