MCQs
6 is int constant.
6.68 is double.
6.68L is long double constant.
6.68f is float constant.
We can do this in following switchstat ement
switch(a)
{
case 2:
case 3:
case 4:
/* some statements */
break;
case 5:
case 6:
case 7:
/* some statements */
break;
}
Yes, we can store either an ASCII character or a Unicode character in a char variable.
continue can work only with loops and not with switch
The cases in a switch must either have integer constants or constant expressions.
fmod(x,y) - Calculates x modulo y, the remainder of x/y.
This function is the same as the modulus operator. But fmod() performs
floating point or long doubledivisions.
No answer description available for this question.
No, the carriage return tells the compiler to read the input from the buffer after
ENTER key is pressed.
Which of the following sentences are correct about a switch loop in a C program?
1:switch is useful when we wish to check the value of variable against a particular set of values.
2:switch is useful when we wish to check whether a value falls in different ranges.
3:Compiler implements a jump table for cases used in switch.
4:It is not necessary to use a break in every switch statement.
The basic C compiler is 16 bit compiler, below are the size of it's data types
The size of short int is 2 bytes wide(16 bits).
The size of long int is 4 bytes wide(32 bits).