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

difference between string and array?

6 Answers  


Explain two-dimensional array.

0 Answers  


write a program to print calender using for loop.

1 Answers   HCL, TCS,


what is the output for this question: main() { int i=1; printf("%d%d%d",i,i++,++i); }

9 Answers  


What is string concatenation in c?

0 Answers  






what is purpose of fflush(stdin) function

4 Answers  


What is the meaning of typedef struct in c?

0 Answers  


What does a run-time "null pointer assignment" error mean?

2 Answers  


How do you define CONSTANT in C?

0 Answers   ADP,


main() { int i=5; printf("%d%d%d%d",i++,i--,i); }

10 Answers  


what is object oriental programing?

1 Answers  


Write a program to check whether a number is prime or not using c?

0 Answers  


Categories