0 votes 0 votes Programming in C programming + – thor asked Nov 22, 2016 thor 375 views answer comment Share Follow See 1 comment See all 1 1 comment reply Umang Raman commented Nov 22, 2016 reply Follow Share a is defined as constant int so it can't be changed its a read only variable now therefore there will be compile time error. 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes D. a will be replaced by 6 everywhere by compiler optimization. and ++6 does't make sense for compiler Sumit1311 answered Nov 22, 2016 Sumit1311 comment Share Follow See all 3 Comments See all 3 3 Comments reply thor commented Nov 22, 2016 reply Follow Share it's constant int. not #define 1 votes 1 votes Sumit1311 commented Nov 22, 2016 i edited by Sumit1311 Nov 22, 2016 reply Follow Share #define replaced in pre processing itself it doesnot make to compiler. This will be replaced in compiler optimization One correction it is not done in compiler optimization. It will be done in syntax analysis as error message in following suggests. See this : http://ideone.com/MN6LCC 0 votes 0 votes cse23 commented Nov 22, 2016 reply Follow Share modification of constant variable will give compilation error 1 votes 1 votes Please log in or register to add a comment.