Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

52.write a “Hello World” program in “c” without using a
semicolon?
53.Give a method to count the number of ones in a 32 bit number?
54.write a program that print itself even if the source file
is deleted?
55.Given an unsigned integer, find if the number is power of 2?

Answer Posted / amogh

53.
'num' is 32 bit integer
count=0;
for(;num!=0;count++)
num&=num-1;

55.

if(num&(num -1) == 0)
printf("%d is power of 2",num);

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program on swapping (100, 50)

1123


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1099


What does p mean in physics?

1038


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

1093


what is bit rate & baud rate? plz give wave forms

1978


please give me some tips for the placement in the TCS.

2110


Can you apply link and association interchangeably?

1124


Explain is it valid to address one element beyond the end of an array?

1213


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

2182


What is getch c?

1298


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1792


how to create duplicate link list using C???

2558


What is the equivalent code of the following statement in WHILE LOOP format?

1303


how to find binary of number?

4449


What is a double c?

984