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
How a string is stored in c?
Why do we need a structure?
What does emoji p mean?
FILE PROGRAMMING
What is c++ used for today?
I heard that you have to include stdio.h before calling printf. Why?
What is the function of multilevel pointer in c?
What are header files? What are their uses?
When c language was developed?
What are the valid places to have keyword “break”?
What is the sizeof () operator?
Write a c program to demonstrate character and string constants?
What are the back slash character constants or escape sequence charactersavailable in c?
Who developed c language and when?
Which driver is a pure java driver