Write a program to show the result of bitwise RIGHT SHIFT ( » ) operator. | CODE WITH SHARAD

Write a program to show the result of bitwise RIGHT SHIFT ( >> ) operator.

Written by Sharad Raj on 13th of March, 2018

BASIC PROGRAMS   C LANGUAGE PROGRAMS

PROGRAM CODE

#include<stdio.h>

#include<conio.h>

void main()

{

int a,b,c;

clrscr();

printf(“enter the value of a and  b : ”);

scanf(“%d%d”,&a,&b);

c=a>>b;

printf(“value of c = %d”,c);

getch();

}


Comments


Contact