Program to shift inputed data by two bits to the left.

C Programming Language / Operators and Enums in C Language

4470

Program:

/* Program to shift inputed data by two bits to the left.
  Author: Atnyla Developer */
  
#include<stdio.h>
#include<conio.h>
void main()
{
int x,y;
 
	printf("Read the integer from keyboard :- ");
	scanf("%d",&x);
	x<<=3;
	y=x;
	printf("\nThe left shifted data is = %d ",y);
 
}

Output:

Read the integer from keyboard :- 10

The left shifted data is = 80 Press any key to continue . . .

Explanation:

Program to shift inputed data by two bits to the left.

This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.