Welcome Guest | Sign in | Register
Operators - Discussion Page For Q.10725 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Operators > Questions and Answers

Q: What is the output of following program?

void main(){
printf("%d%d%d",10<<1, 10>>1, ~10);
printf("%d%d%d",10^20, 10|20, 10&20);
}  
A. 20 5 -11 30 30 1 B. 20 5 -9 30 30 0
C. 5 20 -11 30 30 0 D. 20 5 -11 30 30 0

Answer and Explanation

Answer:20 5 -11 30 30 0

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.