Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

how to write a data 10 in address location 0x2000

3 Answers  


What is the meaning of typedef struct in c?

0 Answers  


Can we declare variable anywhere in c?

0 Answers  


if array a conatins 'n' elements and array b conatins 'n-1' elements.array b has all element which are present in array a but one element is missing in array b. find that element.

18 Answers   Parexel, Ram Infotech, Zycus Infotech,


Explain how do you declare an array that will hold more than 64kb of data?

0 Answers  






What are the different types of pointers used in c language?

0 Answers  


Write a program to compare two strings without using the strcmp() function

42 Answers   Accenture, Arba Minch University,


What is pivot in c?

0 Answers  


Why is extern used in c?

0 Answers  


Which is more efficient, a switch statement or an if else chain?

0 Answers  


How can you draw circles in C?

0 Answers   Accenture,


what would be the output of the following prog? Justify your answer? main() { unsigned char ch; unsigned char i; ch = -255; printf("%d",ch); i = -1; printf("%d",i); }

1 Answers  


Categories