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

What is a structural principle?

1240


how could explain about job profile

1987


In c language can we compile a program without main() function?

1179


Explain what are bus errors, memory faults, and core dumps?

1314


What is context in c?

975


Explain why can’t constant values be used to define an array’s initial size?

1398


what is the diffrenet bettwen HTTP and internet protocol

1882


What is the use of c language in real life?

1070


What is c value paradox explain?

1161


What is meant by gets in c?

1264


What is difference between structure and union with example?

1121


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

2020


What is the difference between typedef struct and struct?

1164


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2127


What functions are used in dynamic memory allocation in c?

1119