//========================
//Program in C to learn shift opertor, shiftop.c
//========================
#include<stdio.h>
int main()
{
printf("\n Bit wise left shift demo \n");
unsigned int value=4;
unsigned int shift=3;
value=value<<shift;//4<<3 means 4*(2*2*2)//means 4*(3 times 2)
printf("Result is: %d \n" ,value);
return 0;
}
//Program in C to learn shift opertor, shiftop.c
//========================
#include<stdio.h>
int main()
{
printf("\n Bit wise left shift demo \n");
unsigned int value=4;
unsigned int shift=3;
value=value<<shift;//4<<3 means 4*(2*2*2)//means 4*(3 times 2)
printf("Result is: %d \n" ,value);
return 0;
}
Program in C to learn shift opertor
ReplyDeleteC++ program for shift opertor
Program in C to learn shift opertor
C++ program for shift opertor
Program in C to learn shift opertor
C++ program for shift opertor
Program in C to learn shift opertor
C++ program for shift opertor
Program in C to learn shift opertor
C++ program for shift opertor
Program in C to learn shift opertor
C++ program for shift opertor
Program in C to learn shift opertor
C++ program for shift opertor