Q. To specify any UNICODE characters, the following syntax may be used:
Ans:- L 'x'
Q. A memory block allocated by the malloc() function:
Ans:- is filled with random values
Q. Which declassified declarator will you use to declare fun as a pointer to a two- parameter function ( one int and one float ) returning the pointer to char ?
Ans:- char * (*fun) (int , float)
Q. Passing NULL as ther first strtok() argument causes:
Ans:- the function to repeat the least find
Q. What is the expected output of the following code?
Ans:- -2
Q. What is expected output of the following code?
Ans:- an int value less than 0
Q. What is the expected output of the following code?
Ans:- 0
Q. What will be the short order if ther qsort() function uses the following comparator?
Ans:- non- ascending
Q. What is the expected output of the following code?
Ans:- an int value equal to 0
Q. The following calloc() invocation allocates:
Ans:- ten occurrences of a 1-byte- long block
Q. The Unicode code point if the value equal to 32:
Ans:- denotes the same character as ther ASCII character of the same value.
Q. What is the expected output of the following code?
Ans:- 122345
Q. What is the expected output of the following code?
Ans:- the code will cause a runtime error
Q. The second strtok() functions parameter ( named delim ) is :
Ans:- a set of character stored as a string ( char * )
Q. To find an element with the key field equal to key through the arr , you will use a b search() function with the following comparator:
Ans:- int camp ( const void *v1, const void *v2) { return strcmp ( ( str *) v1) -> key, ( ( str *) v2) ->key) ; }
Q. The following declarator declares ther compar symbol as:
Ans:- a pointer to a function returning void
Q. To store UNICODE code points, the UTF-8 uses:
Ans:- a varying number of bits
Q. The following code will output 2 when you assign the off variable with the value of:
Ans:- 5
Q. The value of the following expression:
Ans:- is always 1
Q. Access of the memory block allocated by the malloc() function:
Ans:- is aligned, but the alignment is implementation specific
0 Comments