+ 4
Can someone tell me, what is compiler and interpreter, with the example..please
Compiler & Interpreter
9 ответов
+ 8
Try to use the search bar provided
https://www.sololearn.com/discuss/437459/?ref=app
https://www.sololearn.com/discuss/314310/?ref=app
https://www.sololearn.com/discuss/238480/?ref=app
+ 4
Thanks♡
+ 2
Thanks Sandy☆
+ 1
like interpreter, it interprets line by line. Compiler takes whole source and convert machine readable format.
+ 1
Can someone explain to me? what function of id and class attribute at <div> tag?
+ 1
we specify id in div tag to create Identity so that we refer in css and Java script to give uniqueness to this id. But class as refers to group, css is created for group of div.
+ 1
the basic and most important difference between a compiler and an interpreter is that a compiler converts source program (generally written in a high level language eg. C or Fortran) to Target language (generally assembly language) and generates a executable file that you can run.
whereas an interpreter converts the source program to a intermediate code and run it without the generation of an executable file.
2. compiled programs run faster than interpreted ones.
0
Interpreter:
Interprets or runs your code line by line this happens in runtime.
Example: Python uses interpreter it doesn't convert your source code into anyother target language codes.
It just interprets line by line in runtime.
Compiler:
Compiler converts your code after checking for any errors into an target code. This happens in complie time.
Example:C, C++ source codes are first compiled and they produce an .Obj file then they are again ran so your program runs.
This is the difference :)
Hope it is useful 😊
0
thanks bro@shanshank singh