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

Is it cc or c in a letter?

1081


What is a scope resolution operator in c?

1331


Which one would you prefer - a macro or a function?

1134


What is c programming structure?

1278


What are local static variables? How can you use them?

1206


What is a wrapper function in c?

1170


What is memcpy() function?

1169


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

1106


how should functions be apportioned among source files?

1167


Which is better between malloc and calloc?

1254


Can i use “int” data type to store the value 32768? Why?

1236


Why clrscr is used after variable declaration?

1762


Is c procedural or functional?

1098


Explain Basic concepts of C language?

1237


What do you understand by normalization of pointers?

1101