101 reputation
2
bio website
location United States
age
visits member for 1 year, 6 months
seen Oct 7 at 2:21

Junior Software Engineer from Boston.


Oct
7
awarded  Supporter
Sep
24
awarded  Autobiographer
Mar
29
comment Can't compile with GCC on Ubuntu 12.04
@PrahladYeri, no offense, but that does not make any semantic sense. In your second example, instead of assigning a string literal to the char pointer, you instead allocate memory from the heap (which is the correct thing to do). You are not changing any structure or etc.
Mar
28
comment Can't compile with GCC on Ubuntu 12.04
Modifying a string literal in C is undefined behavior. Please remember that.