GATE Exam  >  GATE Questions  >  Find the type of error produced by the follow... Start Learning for Free
Find the type of error produced by the following program -
int main()
{
int b=10;
if(b==10)
printf("Hii user );
printf("Compiler Design");
}
  • a)
    Lexical error
  • b)
    Syntax error
  • c)
    Semantic error
  • d)
    None of these
Correct answer is option 'A'. Can you explain this answer?
Verified Answer
Find the type of error produced by the following program -int main(){i...
When the compiler will go in the lexical phase then ..."Hii user ); printf("…. This will be taken as a single token and when the next inverted comma will come it will go till the last of the program but will not be able to find the closing inverted comma leading to the error which will be lexical error.
View all questions of this test
Most Upvoted Answer
Find the type of error produced by the following program -int main(){i...
The program is incomplete and the error type cannot be determined without the complete code.
Explore Courses for GATE exam
Find the type of error produced by the following program -int main(){int b=10;if(b==10)printf("Hii user );printf("Compiler Design");}a)Lexical errorb)Syntax errorc)Semantic errord)None of theseCorrect answer is option 'A'. Can you explain this answer?
Question Description
Find the type of error produced by the following program -int main(){int b=10;if(b==10)printf("Hii user );printf("Compiler Design");}a)Lexical errorb)Syntax errorc)Semantic errord)None of theseCorrect answer is option 'A'. Can you explain this answer? for GATE 2024 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about Find the type of error produced by the following program -int main(){int b=10;if(b==10)printf("Hii user );printf("Compiler Design");}a)Lexical errorb)Syntax errorc)Semantic errord)None of theseCorrect answer is option 'A'. Can you explain this answer? covers all topics & solutions for GATE 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Find the type of error produced by the following program -int main(){int b=10;if(b==10)printf("Hii user );printf("Compiler Design");}a)Lexical errorb)Syntax errorc)Semantic errord)None of theseCorrect answer is option 'A'. Can you explain this answer?.
Solutions for Find the type of error produced by the following program -int main(){int b=10;if(b==10)printf("Hii user );printf("Compiler Design");}a)Lexical errorb)Syntax errorc)Semantic errord)None of theseCorrect answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of Find the type of error produced by the following program -int main(){int b=10;if(b==10)printf("Hii user );printf("Compiler Design");}a)Lexical errorb)Syntax errorc)Semantic errord)None of theseCorrect answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Find the type of error produced by the following program -int main(){int b=10;if(b==10)printf("Hii user );printf("Compiler Design");}a)Lexical errorb)Syntax errorc)Semantic errord)None of theseCorrect answer is option 'A'. Can you explain this answer?, a detailed solution for Find the type of error produced by the following program -int main(){int b=10;if(b==10)printf("Hii user );printf("Compiler Design");}a)Lexical errorb)Syntax errorc)Semantic errord)None of theseCorrect answer is option 'A'. Can you explain this answer? has been provided alongside types of Find the type of error produced by the following program -int main(){int b=10;if(b==10)printf("Hii user );printf("Compiler Design");}a)Lexical errorb)Syntax errorc)Semantic errord)None of theseCorrect answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Find the type of error produced by the following program -int main(){int b=10;if(b==10)printf("Hii user );printf("Compiler Design");}a)Lexical errorb)Syntax errorc)Semantic errord)None of theseCorrect answer is option 'A'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev