2. number multiply by
2 with out using * operator
#include<stdio.h>
main()
{
int num = 5;
num =
num<<1;
printf("%d",num);
}
Op : 10
Exp : num number
left shift by the 1 position we can get.
1st---------------0101
2nd--------------1010
0 comments: