Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

how does compiler and interpretor works?

+1 vote
asked Jul 30, 2020 by P Sridevi (140 points)

4 Answers

+2 votes
answered Aug 5, 2020 by Sanath49 (180 points)
Compiler takes your whole program source code and compiles it/checks all the errors at once. while the interpreter executes/checks your code line by line and gives you the error if any.
0 votes
answered Aug 5, 2020 by Peter Minarik (84,720 points)

Others have asked similar questions before.

Please have a look here for instance or use your favourite search engine to brows the Internet.

+1 vote
answered Aug 6, 2020 by Nishant Singh (160 points)
The basic diffrence between compiler and interpretor compiler just checks the whole code at once but interpreter checks the code line by line
+2 votes
answered Aug 8, 2020 by 326 Bharat (200 points)
1.Compiler execute  whol program in one time and then give the error in program
2.interpretor execute line by line and give line by line error
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...