Basic Data Structures – 5

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  

Answer
Answer : (c)
(a) (b) (c) (d)
Answer
Answer : (c)

Explanation
Explanation : No answer description available for this question. Let us discuss.
General Knowledge Books

Related Posts

  • Basic Data Structures – 8Basic 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
    Tags: basic, data, structures, exercise, computer, science
  • Basic Data Structures – 1Basic 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 – 4Basic 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 integer
    Tags: basic, data, structures, exercise, computer, science
  • Basic Data Structures – 7Basic Data Structures » Exercise - 17. Literal means : (a) a string (b) a string constant (c) a character (d) an alphabet
    Tags: basic, data, structures, exercise, computer, science
  • Basic Data Structures – 9Basic 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

LEAVE A REPLY

Please enter your comment!
Please enter your name here