Program to shift inputed data by two bits to the left

Write a C Program to shift inputed data by two bits to the left

#include<stdio.h>
void main()
{
int a,b;

printf("Enter value of a :\n");
scanf("%d",&a);

a<<=3;
b=a;
printf("\nThe left shifted data is = %d\n",y);
}

Related Posts