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
Is it cc or c in a letter?
What is a scope resolution operator in c?
Which one would you prefer - a macro or a function?
What is c programming structure?
What are local static variables? How can you use them?
What is a wrapper function in c?
What is memcpy() function?
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?
how should functions be apportioned among source files?
Which is better between malloc and calloc?
Can i use “int” data type to store the value 32768? Why?
Why clrscr is used after variable declaration?
Is c procedural or functional?
Explain Basic concepts of C language?
What do you understand by normalization of pointers?