Basic Data Structures » Exercise - 15. What is the output of the following statement : printf (“%-3d”,12345); (A) 1 2 3 (B) -1 2 3 (C) 1 2 3 4 5 (D) 12
Basic Data Structures » Exercise - 19. A single character input from the keyboard can be obtained by using the function. (a) printf ( ) (b) scanf ( ) (c) putchar ( ) (d) getchar ( )
Basic Data Structures » Exercise - 18. If an integer needs two bytes of storage, then the maximum value of a signed integer is : (a) 216-1 (b) 215-1 (c) 216 (d) 215
Basic Data Structures » Exercise - 16. If the variables i, j and k are assigned the values 5,3 and 2 respectively, then the expression i = j + ( k + + = 6 ) + 7 (a) gives an error message (b) assigns a value 16 to i (c) (d) assigns a value 19 to i