cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
bitwise operators
bitwise operators
Mar 3, 2013 at 9:50am UTC
Krishna Prasad
(1)
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;
}
Mar 3, 2013 at 9:54am UTC
Peter87
(11238)
The code fails to compile.
error: invalid operands of types ‘int’ and ‘double’ to binary ‘operator<<’
Topic archived. No new replies allowed.