Give a oneline C expression to test whether a number is a
power of 2?
Answer Posted / natmat
printf("%u=%u\n", x, ((x & ~(x - 1)) == x));
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Sir... please give some important coding questions asked by product companies..
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines
write a program for area of circumference of shapes
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?
Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?
why nlogn is the lower limit of any sort algorithm?
how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns
why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?
write a simple calculator c program to perform addition, subtraction, mul and div.
can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail
Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']
Design an implement of the inputs functions for event mode
Write a routine to implement the polymarker function