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 |
I have a varargs function which accepts a float parameter?
a linear linked list such that the link field of its last node points to the first node instead of containing NULL a) linked list b) circular linked list c) sequential linked list d) none
What is the difference between void main and main in c?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
what is the advantage of function pointer
16 Answers CMC, CS, Freshdesk, L&T, LG Soft, Matrix, TCS,
Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17
convert 12345 to 54321 withoutusing strig
Write a code to generate a series where the next element is the sum of last k terms.
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }
Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks.
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler