Basic Data Structures » Exercise – 1
5. 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
Explanation
Explanation : No answer description available for this question. Let us discuss.
Related Posts
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) 215Tags: basic, data, structures, exercise, computer, science
Basic Data Structures » Exercise - 1 1. main ( ) is an example of : (a) header (b) statement (c) library function (d) user defined function Tags: basic, data, structures, exercise, statement, computer, science
Basic Data Structures » Exercise - 14. The first digit of a decimal constant must be : (a) a zero (b) a non zero number (c) a negative number (d) an integerTags: basic, data, structures, exercise, computer, science
Basic Data Structures » Exercise - 17. Literal means : (a) a string (b) a string constant (c) a character (d) an alphabetTags: basic, data, structures, exercise, computer, science
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 ( )Tags: basic, data, structures, exercise, printf, computer, science