Program to shift inputed data by two bits to the left.
C Programming Language / Operators and Enums in C Language
4565Program:
/* Program to shift inputed data by two bits to the left. Author: Atnyla Developer */ #include #include 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.
# C Tutorials
# JAVA Tutorials
# HTML Tutorials
# Computer Fundamental
# Data Structure
# DBMS Tutorials
SQL
# C# Language
# R Language
# PHP
# Python
# Vue JS