The contents of two pointers that point to adjacent variables of type float differ by

Equality, Inequality Equal,
Different, Double, Single,
Fixed, Variable, fseek(fp, 0L, 0),
fseek(fp, 0L, 1), semicolon, prenthesis,
4 bytes, do…while, while…do,
|, ||, t
,
(*t)
4.1 Operators &, ^, = = have ________ precedence.
4.2 The logical operator = = checks for ________ of two values.
4.3 A character constant is a sequence of one or more characters enclosed in ________
quotes.
4.4 printf( ) function uses ________ number of arguments.
4.5 rewind (fp) and ________ performs the same operation.
4.6 The contents of two pointers that point to adjacent variables of type float differ by
________.
4.7 A function name must be followed by ________.
4.8 ________ iterative statement will always be executed atleast once.
4.9 ________ is the bitwise inclusive or operator.
4.10 If “t” is a pointer to a structure then “t→” is the same as ________.

Arrays in ‘C’ language are always stored in column-major fashion

2. Each statement below is either TRUE or FALSE. Choose the most appropriate one
and ENTER in the “tear-off” sheet attached to the question paper, following
instructions therein. (1 x 10)
2.1 Arrays in ‘C’ language are always stored in column-major fashion.
2.2 for(;;) will give syntax error in ‘C’ language.
2.3 For command line arguments, argv is a pointer to an array of pointers.
2.4 A member of any structure is referred to in an expression by a construction of the form
structure-name → member.
2.5 Bitwise fields can be of any type.
2.6 goto statement transfer the control from one function to another.
2.7 An array’s name is a pointer constant.
2.8 C allows different variables to have the same name.
2.9 Variables defined in the same function always have the same scope.
2.10Each symbol constant requires a separate # define directive to create it.

Consider the following program:

1.10 Consider the following program:
main( )
{
char *k=”xyz;
f(k);
printf(“%s\n”,k);
}
f(char *k)
{ k = malloc(4); strcpy(k, “pq”); }
What will be the output?
A) pq
B) xyz
C) syntax error
D) none of the above

Find the error in the following program:

1.9 Find the error in the following program:
main( )
{
int m;
char g;
switch(m)
{
case 5 : grade=”P”;break;
case 2 : grade=”Q”;break;
case 2 : grade=”R”;break;
default : grade=”S”;break;
}
}
A) No two labels may be identical
B) switch statement cannot have more than three labels
C) case label cannot be numbers
D) none of the above

An external variable is one

1.8 An external variable is one
A) Which resides in the memory till the end of the program
B) Which is globally accessible by all functions
C) Which is declared outside the body of any function
D) All of the above

The && and | | operators

1.7 The && and | | operators
A) compare two numeric values
B) combine two numeric values
C) compare two boolean values
D) none of the above

What will be the output of the program?

1.5 # define dp(e) printf(#e “ = %d\n”,e)
main( )
{
int x =3, y = 2;
dp(x/y)
}
What will be the output of the program?
A) prints x/y = 1
B) prints #e = 1.5
C) prints #x/y = 1
D) none of the above

Consider the following program,

1.4 Consider the following program,
main( )
{
int x = 49;
for(;x;)
x--;
printf(“%d\n”, x);
}
the output of the program will be
A) 49
B) 0
C) -49
D) none of the above