欢迎来到计算机考试题库网 考试题库官网
全部科目 > 计算机考试试题及答案解析

未知题型

Whichstatementsaretrueconcerningtheeffectofthe>>and>>>operators?()

    A.Fornon-negativevaluesoftheleftoperand,the>>and>>>operatorswillhavethesameeffect.
    B.Theresultof(-1>>1)is0.
    C.Theresultof(-1>>>1)is-1.
    D.Thevaluereturnedby>>>willneverbenegativeaslongasthevalueoftherightoperandisequaltoorgreaterthan1.
    E.Whenusingthe>>operator,theleftmostbitofthebitrepresentationoftheresultingvalue
【参考答案】

A, E

点击查看答案

相关考题