ISRO Computer Science (CSE) 2008 - Question 80

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2008

In C, what is the effect of a negative number in a field width specifier?

  • A. the values are displayed right justified
  • B. the values are displayed centered
  • C. the values are displayed left justified
  • D. the values are displayed as negative numbers

Answer: C. the values are displayed left justified

Explanation: A negative width (e.g. %-10d) left-justifies the output.

| All questions of ISRO Computer Science (CSE) 2008