1 votes 1 votes In char p[] = “hello” when size will be allocated at runtime or at compile time? Programming in C programming-in-c + – learner_geek asked Nov 17, 2017 learner_geek 358 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Memory is allocated for this array is at compile time. Ashwin Kulkarni answered Nov 17, 2017 Ashwin Kulkarni comment Share Follow See 1 comment See all 1 1 comment reply learner_geek commented Nov 17, 2017 reply Follow Share AS at compile time, we are knowing content as size then why not this allocate in static instead of stack 0 votes 0 votes Please log in or register to add a comment.