2 votes 2 votes Programming in C programming-in-c + – Nishikant kumar asked Nov 14, 2015 • edited Oct 16, 2016 by Arjun Nishikant kumar 469 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes in preprocessing step, using #define we can't replace int which is a predefined data type so error cse23 answered Oct 16, 2016 cse23 comment Share Follow See all 3 Comments See all 3 3 Comments reply Arjun commented Oct 16, 2016 reply Follow Share preprocessor does not know of the datatypes rt? 1 votes 1 votes ManojK commented Oct 17, 2016 reply Follow Share Yes The preprocessor does not know anything about types in the language. I think here option D should be correct. arr1 list={0,1,2,3}; But arr1 is not declared inside main.So compilation error. 0 votes 0 votes cse23 commented Oct 17, 2016 reply Follow Share yes. #define <identifier> <replacement-token> int is not an identifier @why to declare arr1 here list is declared which is of type arr1 and arr1 is int as per #define directive so before compilation preprocessing takes place where pre-processor can't recognise int as an indentifier because int is a keyword in C...I think is is violation of preprocessing directive syntax rule so compilation error..ryt? 0 votes 0 votes Please log in or register to add a comment.