#include <iostream> struct A { operator int() { return 1; }; operator double() { return 2.0; } }; int main() { A a; int i = a; float x = a; x += i; std::cout << x; }
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment