« first day (2789 days earlier)      last day (856 days later) » 

6:03 PM
Huh This C chat room is empty
Wish C is more talked about nowadays!
 
 
5 hours later…
10:53 PM
0
Q: In C or C++, when declaring variables for identical integers twice, do we end up with two distinct memory bocks for those two integers

JojiIf we have int a = 123 int b = 123 will we end up with two distinct memory bocks allocated for the integer 123 or we only end up with one memory block allocated for 123 and variable a and b are just loaded at the same memory address? What about int a = 123 int b = a Does this change the answer?...

 

« first day (2789 days earlier)      last day (856 days later) »