edited by
4,283 views
2 votes
2 votes

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

  1. the values are displayed right justified
  2. the values are displayed centered
  3. the values are displayed left justified
  4. the values are displayed as negative numbers
edited by

2 Answers

Best answer
4 votes
4 votes

The effect of a negative number in a field  Width specifier the values are displayed left justified.

So option C is correct.

selected by
3 votes
3 votes

The effect of a negative number in a field  Width specifier the values are displayed left justified.

So option C is correct.

Answer:

Related questions

28 votes
28 votes
3 answers
1
Kathleen asked Sep 18, 2014
14,267 views
Consider the following C function:int f(int n) { static int i = 1; if(n >= 5) return n; n = n+i; i++; return f(n); }The value returned by $f(1)$ is:$5$$6$$7$$8$
5 votes
5 votes
3 answers
2
go_editor asked Jun 13, 2016
2,622 views
A Steiner patch isBiquadratic Bezeir patchBicubic patchCircular patch onlyBilinear Bezier patch
6 votes
6 votes
1 answer
3
go_editor asked Jun 13, 2016
8,592 views
We can make a class abstract byDeclaring it abstract using the virtual keywordMaking at least one member function as virtual functionMaking at least one member function a...
6 votes
6 votes
3 answers
4
go_editor asked Jun 12, 2016
5,303 views
The device which is used to connect a peripheral to bus is known ascontrol registerinterfacecommunication protocolnone of these