Why is cout << (double(23) & pow(2,5)); giving an error ?
C:\xxx\xxx.cpp(12) : error C2296: '&' : illegal, left operand has type 'double'
C:\xxx\xxx.cpp(12) : error C2297: '&' : illegal, right operand has type 'double'
Both should be double. We cant convert the pow to int as the value wont be visible if it crossess the 32768 mark ?
Thanks
C:\xxx\xxx.cpp(12) : error C2296: '&' : illegal, left operand has type 'double'
C:\xxx\xxx.cpp(12) : error C2297: '&' : illegal, right operand has type 'double'
Both should be double. We cant convert the pow to int as the value wont be visible if it crossess the 32768 mark ?
Thanks