Computer Science, asked by srinikethan1187, 1 year ago

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 pravesh09
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