A compiler converts your written code into native machine code that is definitely using 0s and 1s and finally the code executes after your machine understands it. A interpreter also works similarly but it converts one line at a time!, and yeah these also picks you up at your syntax errors.
Hope this helped you!
A compiler converts your written code into native machine code that is definitely using 0s and 1s and finally the code executes after your machine understands it. A interpreter also works similarly but it converts one line at a time!, and yeah these also picks you up at your syntax errors.
Hope this helped you!
Yeah but how does it convert the code into binary?
machine code and binary are same things
i know, but how does
println!("Hello");
get converted to binarythen you should research more 'bout terminals and consoles
But how are terminals and compilers related?