А что же по вашему выводится в этом случае?
The lvalue-to-rvalue (4.1), array-to-pointer (4.2), and function-to-pointer (4.3)
standard conversions are performed on the argument expression. After these
conversions, if the argument does not have arithmetic, enumeration, pointer,
pointer to member, or class type, the program is ill-formed.
An lvalue or rvalue of type “array of N T” or “array of unknown bound of T” can be
converted to an rvalue of type “pointer to T.” The result is a pointer to the first
element of the array.
по указателю, записанному в переменной arr
Напишите в своём примере
arr2 = arr;
26 - это в онлайн компиляторе
а в DEV-C++ выводит 2
ты смог пробиться в GNU?
Не помогло, но ошибка сократилась.
g++ ... -c ...
-- это вызов компилятора для компиляции. -l и -L там нафиг не нужны.g++ -o vanilla.exe ...
-- это вызов компилятора для линковки.
...а кэш ещё не изобрели.