Left & Right Shift Bit wise operator

Thursday, 8 September 2011

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
a=5<<2;
b=5>>1;
printf("a=%d\nb=%d",a,b);
getch();
}


OUTPUT:


a=20
b=2












No comments:

Post a Comment

 

Blogger news

Blogroll

Enter your email address:

Delivered by FeedBurner

Total Pageviews

Followers

Most Reading