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 pointer?
writw a program to insert an element in the begning of a doubly linked list
code for selection sort?
Is c an object oriented programming language?
1. Write the function int countchtr(char string[ ], int ch); which returns the number of times the character ch appears in the string. Example, the call countchtr(“She lives in NEWYORK”, ‘e’) would return 3.
inline function is there in c language?
write a program to generate address labels using structures?
Program to display given 3 integers in ascending order
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
2 Answers HCL, IBM, Satyam, Vimal, Vimukti Technologies,
What is difference between array and pointer in c?
write a reverse string to print a stars.(with out using logic) ***** **** *** ** *
how can i calculate mean,median,mode by using c program