Question #258565

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


Expert's answer

#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!

LATEST TUTORIALS
APPROVED BY CLIENTS