recategorized by
2,241 views

1 Answer

2 votes
2 votes

ans is A   Type promotion

Type Conversion in Expressions
When constants and variables of different types are mixed in an expression, they are
all converted to the same type. The compiler converts all operands up to the type of
the largest operand, which is called type promotion.
First, all char and short int values
are automatically elevated to int. (This process is called integral promotion.) Once this
step has been completed, all other conversions are done operation by operation, as
described in the following type conversion algorithm:
IF an operand is a long double
THEN the second is converted to long double
ELSE IF an operand is a double
THEN the second is converted to double

ELSE IF an operand is a float
THEN the second is converted to float
ELSE IF an operand is an unsigned long
THEN the second is converted to unsigned long
ELSE IF an operand is long
THEN the second is converted to long
ELSE IF an operand is unsigned int
THEN the second is converted to unsigned int

 

edited by
Answer:

Related questions

3 votes
3 votes
1 answer
1
go_editor asked Jul 27, 2016
10,845 views
Given a flow graph with 10 nodes, 13 edges and one connected components, the number of regions and the number of predicate (decision) nodes in the flow graph will be4, 55...
3 votes
3 votes
2 answers
2
2 votes
2 votes
1 answer
3
go_editor asked Jul 29, 2016
2,208 views
Which of the following commands would return process_id of sleep command?Sleep 1 and echo $Sleep 1 and echo $#Sleep 1 and echo $*Sleep 1 and echo $!
3 votes
3 votes
1 answer
4
go_editor asked Jul 29, 2016
3,790 views
The directory structure used in Unix file system is calledHierarchical directoryTree structured directoryDirected acrylic graphGraph structured directory