#include Using namespace std; int a=3; Void print()const { Cout
@j.jayathukshan Жыл бұрын
Why two times 2 print ahiirukku? 1 and 2 enduthaane print ahi irukanum!
@AriharasudhanR9 ай бұрын
same doubt bro. ippo answer therinjiducha bro.please reply!!!!
@karthikbala5787 ай бұрын
@@AriharasudhanR Constructor call aagum podhu 1 dhan But when print has a=2 it will again change to 2 So anything outside print has nothing when print function calls it automatically changed to 2 and print 2
@aashiqahmed52733 жыл бұрын
4:44 , const is keyword , not operator
@arifnivas19943 жыл бұрын
ChangeA'la const declare pannitu. Kila main function'laiyum const declare panni run panna error kaatuthu bro athu yee? Error: assignment of member 'example::a' in read-only object a=5; Ipd erro varuthu bro.
@aashiqahmed52733 жыл бұрын
yes , because const function cannot change 'a', previous error is for some dummy checks