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
Explain what are linked list?
formula to convert 2500mmh2o into m3/hr
Explain how do you print an address?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What is the deal on sprintf_s return value?
Explain what is the difference between far and near ?
What is meant by inheritance?
What is the difference between local variable and global variable in c?
Does free set pointer to null?
How can I list all of the predefined identifiers?
Why header files are used?
Is a house a shell structure?
How can I determine whether a machines byte order is big-endian or little-endian?
Explain what is wrong with this statement? Myname = ?robin?;