Skip to main content
4 events
when toggle format what by license comment
Apr 17, 2015 at 8:35 comment added ouah @Karthick in your example int i; the i = 10; is not an initialization but an assignment statetement. At block scope, the i object is allocated when the { where it is declared opens.
Apr 17, 2015 at 8:03 comment added Grijesh Chauhan I would like to break declaration and assigned for OP, I tried your code
Apr 17, 2015 at 8:02 comment added Karthick Thanks for ur answer. but i wanted to know whether memory gets allocated during declaration or initialization of a variable?
Apr 17, 2015 at 7:51 history answered ouah CC BY-SA 3.0