LEFT SHIFT OPERATION - C PROGRAMMING - Code Developer Pro

Breaking

Code Developer Pro

Solutions to all coding problems

Like us on Facebook

test banner

Post Top Ad

Responsive Ads Here

Post Top Ad

Responsive Ads Here

Thursday 17 December 2015

LEFT SHIFT OPERATION - C PROGRAMMING

To do a Left Shift Operation in C programming.



Solution


#include<stdio.h>
void main()
{ 
      system("clear");
      int a,b;
      printf("enter the integer value");
      scanf("%d",&a);
      b=a<<2;
      printf("the result after 2 times left shift is %d",b);
}


Thanks & Regards,
Anju Soosan George
Assistant Professor

No comments:

Post a Comment

Post Top Ad

Responsive Ads Here