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 |
Which of the Following is not defined in string.h? A)strspn() B)strerror() C)memchr() D)strod()
What is #include cctype?
write a program wch produces its own source code aas its output?
Explain Basic concepts of C language?
Which is better oop or procedural?
how can i get this by using for loop? * ** * **** * ******
How does free() know explain how much memory to release?
What is the size of structure in c?
What is logical error?
increment operateor (++)and decrament(--) #include<stdio.h> #inclide<conio.h> main() { int x=15; while(x!=0) scanf("%d",&x); {
what is c++ programming?
where do we use volatile keyword?