1 votes 1 votes Programming in C pointers string-literal + – anonymous asked Jun 17, 2017 recategorized Jun 21, 2022 by Arjun anonymous 449 views answer comment Share Follow See 1 comment See all 1 1 comment reply Saikat commented Jun 29, 2017 reply Follow Share Please compile it in IDEONE and see. It won't work there. I think turbo C and gcc are reacting differently here. 0 votes 0 votes Please log in or register to add a comment.
2 votes 2 votes You forget to write const keyword before char *p. junaid ahmad answered Jun 17, 2017 junaid ahmad comment Share Follow See all 2 Comments See all 2 2 Comments reply anonymous commented Jun 17, 2017 reply Follow Share bhaa lekin mne kai jga padha hai youtube pe bhi wo bina constant ke bolrae hai 0 votes 0 votes junaid ahmad commented Jun 17, 2017 reply Follow Share They might forget to mention it,char *p mean p is a pointer of type char GO THROUGH THIS LINK :https://stackoverflow.com/questions/1431576/how-do-you-declare-string-constants-in-c 1 votes 1 votes Please log in or register to add a comment.