Find Index of least significant bit set in an Integer. ex.
int value is say 10001000 results should be 4.
Answer / supri
I think the following code will help!!!!!!
#include<stdio.h>
main()
{
int a,count=0;
scnaf("%d",&a);
while(a)
{
if(a&1==1)
{
printf("%d",++count);
break;
}
a=a>>1;
++Count;
}
return;
}
Is This Answer Correct ? | 7 Yes | 1 No |
what is a function pointer and how all to declare ,define and implement it ???
Explain the use of 'auto' keyword
What are file streams?
WAP that prints the number from 1 to 100. but for multiplies of three print "XXX" instead of the number and for the multiplies of five print "YYY" . for number which are multiplies of both three and five print "ZZZ"
Why do we use static in c?
write a program to print infinte number
Is the C language is the portable language...If yes...Then Why...and if not then what is problem so it is not a Portable language..???
What is 2c dna?
sir, i cannot find the way how to write aprogram by using array on queue
In scanf h is used for
Explain what is operator promotion?
what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }