Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

   Computer Science / IT
   Electronics
   Electrical
   Mechanical
   Chemical
   Civil

   CAT / MBA

   GMAT / Foreign MBA
Latest Jobs

Engineering Jobs / Technical Jobs
Management Jobs

Sitemap
Terms of use

Displaying  Source Code(s)  
 

 
Program for counting number of Parity Bits in an integer.

--------------------------------------------------------------------------------

Description : Program for counting number of Parity Bits in an integer.

main()
{
int num, cnt = 0;

printf("enter the no :");
scanf("%d",&num);

while (num != 0)
{
num = num & (num - 1);
cnt++;
}

printf("
number of parity bits = %d ",cnt);
}
 

 

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved © copyright 123ENG