...
UGC NET CS 2007 June-Paper-2
October 13, 2023
Algorithms
October 13, 2023
UGC NET CS 2007 June-Paper-2
October 13, 2023
Algorithms
October 13, 2023

UGC NET CS 2007 June-Paper-2

Question 12
In case of right shift bitwise operator in ‘C’ language, after shifting n bits, the leftmost n bits :
A
are always filled with zeros
B
are always filled with ones
C
are filled with zeros or ones and is machine dependent
D
none of the above
Question 12 Explanation: 
In case of right shift bitwise operator in ‘C’ language, after shifting n bits, the leftmost n bits are filled with zeros or ones and is machine dependent.
Example:
Input: positive number→ It will filled with zeros
Input: Negative number → it will filled with ones
Option-C is more appropriate answer.
Correct Answer: C
Question 12 Explanation: 
In case of right shift bitwise operator in ‘C’ language, after shifting n bits, the leftmost n bits are filled with zeros or ones and is machine dependent.
Example:
Input: positive number→ It will filled with zeros
Input: Negative number → it will filled with ones
Option-C is more appropriate answer.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!