Answer to Question #258565 in C for mufafa

Question #258565

Write a C program that bitwise displays the short-integer value 167 on the screen.


1
Expert's answer
2021-10-29T11:55:12-0400
#include<stdio.h>
int main(){
	int ans, number = 167;
	ans = ~number;
	printf("~167 = %d", ans);
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS