0 votes 0 votes Type of ERROR Compiler Design compiler-design lexical-analysis test-series + – balchandar reddy san asked Jan 19, 2019 • retagged Jul 18, 2022 by makhdoom ghaya balchandar reddy san 1.0k views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments balchandar reddy san commented Jan 19, 2019 reply Follow Share @smsubham what about the unclosed quotes..doesn't it give lexical or syntax error? 1 votes 1 votes Shubhanshu commented Jan 19, 2019 reply Follow Share Semantic and Lexical error. 0 votes 0 votes smsubham commented Jan 21, 2019 reply Follow Share missed the unclosed quotes, it will give lexical error. 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes At line 4: y=x+10; – It will give a semantic error due to usage of undeclared variable. At line 5: printf("%d", %d", &x, &y); – It will give lexical error due to unclosed quotation. DebRC answered Sep 7, 2022 DebRC comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes It will give Lexical error as " is unclosed. See here for details https://stackoverflow.com/a/5535366 Rishabh Agrawal answered Jan 19, 2019 Rishabh Agrawal comment Share Follow See 1 comment See all 1 1 comment reply Hira Thakur commented Aug 25, 2019 reply Follow Share a semantic error is also present here, using a variable without decleration. (Y) 0 votes 0 votes Please log in or register to add a comment.