Q:

Write a program to demonstrate betwise operator left shift and right shift operator

0

Write a program to demonstrate betwise operator left shift and right shift operator

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C Programming Exercises With Solutions

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Write a program to demonstrate print to increament... >>
<< Write a program to convert temperature from centig...