Write a program to demonstrate betwise operator left shift and right shift operator
Program:
#include<stdio.h> #include<conio.h> void main() { int a=4,c; c=a<<1; printf("%d",c); c=a>>1; printf("%d",c); getch(); }
Output:
82
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Program:
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer