Which of the following mode argument is used to truncate?
The operator used for dereferencing or indirection is ____
When can the static_cast be applied?
What do we need to do to a pointer to overload the subscript operator?
What is the output of the following C code?
#include<stdio.h>
int main()
{
printf("%x", -1 << 1);
return 0;
}
#include <stdio.h>
main( )
{
int i;
for ( i=0; i<5; i++ )
{
int i = 10;
printf ( "%d ", i );
i++;
}
return 0;
}
Which of the following statements about virtual functions is correct?
In the absence of parentheses, the order of evaluation for an expression containing relational operators, assignment operators, and arithmetic operators is:
What will be the output of the following C code?
char str[6];
strcpy(str, "HELLO");
float res = atof(str);
printf("String value=%s, Float value=%.6f\n", str, res);
What will be the output of the following C++ code?
<pre lang="cpp" line="1" cssfile="hk1_style">
#include <iostream>
using namespace std;
int main()
{
enum channel {star, sony, zee};
enum symbol {hash, star};
int i = 0;
for (i = star; i <= zee; i++)
{
printf("%d ", i);
}
return 0;
}