Physics · Computer Science
What is the output displayed when printing the result as a hexadecimal value in C if a 16-bit or 32-bit two's complement integer representation performs a sign-extended right shift operations on -1? Code context: printf('%x', -1 >> 4);
- 10000
- 200ff
- 30fff
- 4ffff (or ffffffff depending on word size)✓
Correct answer
ffff (or ffffffff depending on word size)
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Physics?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Computer Science?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Physics · Computer Science