Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
what will be the output of the following function, if it gets called? int func(){ cout<<1; return 2; cout<<3; }
2 ответов
+ 2
Just 1.
cout << 3;
will never execute because of that return 2; it is returning back to where it was called from.
+ 1
thanks Cohen