Tuesday, June 28, 2011

C Program to illustrate the use of SHIFT Operator

#include<stdio.h>
#include<conio.h>

void main()
{
int x,y;
clrscr();
printf("Read the integer from keyboard :- ");
scanf("%d",&x);
x<<=3;
y=x;
printf("\nThe left shifted data is = %d ",y);
getch();
}

No comments:

Post a Comment