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 / sivajyothi katireddi

55:

if(num & (num-1) == 0)
{
printf("num is power of 2\n");
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between main and void main?

1210


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

1992


What are the differences between Structures and Arrays?

1211


Explain what is the most efficient way to store flag values?

1230


Explain the bubble sort algorithm.

1064


What are the advantages of using macro in c language?

1126


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3369


Where can I get an ansi-compatible lint?

1147


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2693


How can I read/write structures from/to data files?

974


Describe dynamic data structure in c programming language?

1095


what are the facialities provided by you after the selection of the student.

2253


Why doesn't C support function overloading?

2756


Describe how arrays can be passed to a user defined function

1293


What are global variables and explain how do you declare them?

1100