Sunday, 22 November 2020

What's the difference between comment line and code line?

What's the difference between comment line and code line?

  • Comment line:  

    Comment line is a that describes something about the code. But these lines wont get executed.
  •  Code line: 

    Code line  is a line that has the logic or our program. This line will get executed. Compiler will compile this line and output will be generated.
The similarity between comment line and code line is both will be there in the same file.But when we run code line will get executed and comment line wont get executed.

No comments:

Post a Comment