Related Questions
What is the correct answer?
4
What will be output if you will compile and execute the following c code?
#include
int main()
{
float a=5.2;
if(a==5.2)
printf("Equal");
else if(a<5.2)
printf("Less than");
else
printf("Greater than");
return 0;
}
What is the correct answer?
4
unsigned char has a range from 0 to ------------
What is the correct answer?
4
The expression "b = 3 ^ 2;" will evaluate b = 9.
What is the correct answer?
4
void' is a datatype.
What is the correct answer?
4
Which of the following is invalid?
What is the correct answer?
4
Union is used to hold different data at different time.
What is the correct answer?
4
Operation between an integer and float always yields a float result.
What is the correct answer?
4
Which of the following keyword supports dynamic method resolution?
What is the correct answer?
4
Identify the wrong statement
What is the correct answer?
4
perror( ) function used to ?
B. prints the error message specified by the compiler
C. prints the garbage value assigned by the compiler
What is the correct answer?
4
The expression 'int j = 6 + 3 % -9;' evaluates to -1.
What is the correct answer?
4
What would be the output of the following program?
int x=40;
main(){
int x=20;
printf("
%d",x);
}
What is the correct answer?
4
Which escape character can be used to beep from speaker in C?
What is the correct answer?
4
The output of the following code is:
main()
{
int a[10], i;
for (i = 1; I <= 0; i++)
{
scanf("%d", a[i]);
printf("%d", a[i]);
}
}
D. 1 to 10 will be displayed
What is the correct answer?
4
Nested macros are allowed.
What is the correct answer?
4
Left shift operator rotates the bits on the left and places them to the right.
What is the correct answer?
4
Structures within structures cannot be created.
What is the correct answer?
4
For 16bit compiler allowable range for integer constants is ______ ?
What is the correct answer?
4
Which of the following is not an infinite loop
A. int i =1;
while (1)
{i++;}
C. int true=0< false;
while (true)
{false = 1;}
D. int y, x = 0;
do
{y = x;}
while (x==0);
What is the correct answer?
4
char *s[10] defines an array of ------------------------
What is the correct answer?
4
How many times the following loop will execute?
for (a = 0; a < 4; a++)
printf("hello
");
What is the correct answer?
4
All macro substitutions in a program are done before compilation of the program.
What is the correct answer?
4
unsigned' is a valid variable name.
What is the correct answer?
4
The size of signed integer is ------ bytes.
What is the correct answer?
4
The contents of a file opened in 'r+' mode cannot be changed.
What is the correct answer?
4
enum helps to create user defined datatype.
What is the correct answer?
4
The same variable names of automatic type can be used in different functions without any conflict.
What is the correct answer?
4
Which of the following is allowed in a C Arithmetic instruction
What is the correct answer?
4
The output of the following code is:
void main()
{
int a = 1, b=2;
int *ip;
ip=&a;
b=*ip;
printf("%d", b);
}
What is the correct answer?
4
If 'str' is a string of 7 characters, the statement printf("%4s", str); will display ------characters.