0
Q:

how to check lsb is set

#include<stdio.h>
#include<stdlib.h>
 
int main()
{
    int num;
 
    printf("Enter a number\n");
    scanf("%d",&num);
 
    if(num & 1)
        printf("LSB of number is set \n");
    else
        printf("LSB of number is not set \n");
 
    return 0;
}
0

New to Communities?

Join the community