0 votes 0 votes Find the C statement which has a syntax error. fi(z); for(a, b, c); whil(a, b); fi (z); for (a, b, c); whil (a, b); None of these. This is a modification of https://gateoverflow.in/33320/identify-syntax-error Compiler Design compiler-design + – rahul sharma 5 asked Oct 13, 2017 rahul sharma 5 1.3k views answer comment Share Follow See all 11 Comments See all 11 11 Comments reply rahul sharma 5 commented Oct 13, 2017 reply Follow Share My answer is 2,4,5,6 Please verify 0 votes 0 votes joshi_nitish commented Oct 14, 2017 i edited by joshi_nitish Oct 14, 2017 reply Follow Share ..... 0 votes 0 votes rahul sharma 5 commented Oct 14, 2017 reply Follow Share What about 2? Its wrong syntax of FOR loop.2 semicolons are mandatory.Please confirm? 0 votes 0 votes joshi_nitish commented Oct 14, 2017 reply Follow Share yes, you are correct, i misinterpreted commas as semicolons. 0 votes 0 votes saxena0612 commented Oct 14, 2017 reply Follow Share Why 4 and 6 it could be any function in program? 0 votes 0 votes joshi_nitish commented Oct 14, 2017 reply Follow Share though new convention allow space b/w function name and () but in earlier version it was syntacic error 0 votes 0 votes saxena0612 commented Oct 14, 2017 reply Follow Share @ joshi_nitish we should follow C standard right? and its allowed in C are you taking general compiler concept? 0 votes 0 votes joshi_nitish commented Oct 14, 2017 reply Follow Share yes, according to C, it is allowed and hence no syntactic error, but in some compilers it is unallowed... 1 votes 1 votes Arjun commented Oct 14, 2017 reply Follow Share Which compiler does not allow space? 0 votes 0 votes joshi_nitish commented Oct 14, 2017 reply Follow Share @Arjun sir, please see function declaration heading here 0 votes 0 votes rahul sharma 5 commented Oct 14, 2017 reply Follow Share I tried on geeksforgeeks compiler ,it is working fine. I was under impression that we cannot put space between function name the left paranthesis. 0 votes 0 votes Please log in or register to add a comment.