bitwise operators

friends,
what happens when we use fractional values in right shift or left shift operators
for example the following program,any one help me plzz
#include<iostream>
using namespace std;
int main()
{
int a=10;
a= a<<1.5;
cout<<a;
return 0;
}
The code fails to compile.
error: invalid operands of types ‘int’ and ‘double’ to binary ‘operator<<’
Topic archived. No new replies allowed.