I always forget which one has stricter rules (C or C++) but shouldn't this give a warning in at least one of the languages?
I've tried compiling with both c and c++ usingCode:int x = 120000; short y = x;
Neither give a warning.Code:g++ -c -Wall test.cpp gcc -c -Wall test.cpp