Write a program that reads an integer and outputs the number of 1s in its binary representation.Note that if the integer is negative then 2's complement will be considered as it binary representation.
Answers
Answered by
0
Answer:
i will write funtion alone
int ch,n;
enter the choice
switch ch
case1 if n>o
1
case 2 if n<o
2
Similar questions
English,
6 months ago
Science,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Physics,
1 year ago
History,
1 year ago