TECHNICAL QUESTIONS AND ANSWERS
A Collection Of Technical Questions. Study & Apply.
Thursday, June 15, 2006
how to find give no is 2 power of n
f=( ( no & ( no-1 ) ) == 0 )
if( f == 1)
printf( "The Given Number is Power of %d", no );
else
printf( "The Given Number is not Power of %d", no );
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment