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 |
differentiate built-in functions and user – defined functions.
#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
Explain the use of function toupper() with and example code?
a=0; while(a<5) printf("%d\n",a++); how many times does the loop occurs? a.infinite b.5 c.4 d.6
What are linked lists in c?
How many types of sorting are there in c?
How do you determine the length of a string value that was stored in a variable?
Explain what is wrong in this statement?
What is a node in c?
Explain in detail how strset (string handling function works )pls explain it with an example.
write a method for an array in which it can display the largest n next largest value.
How many types of operators are there in c?