Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Line number
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Line numbers and syntax errors== If a programmer introduces a [[syntax error]] into a program, the [[compiler]] (or [[interpreter (computing)|interpreter]]) will inform the programmer that the attempt to compile (or execute) failed at the given line number. This simplifies the job of finding the error immensely for the programmer. The use of line numbers to describe the location of errors remains standard in modern programming tools, even though line numbers are never required to be manually specified. It is a simple matter for a program to count the [[newline]]s in a [[source file]] and display an automatically generated line number as the location of the error. In [[Integrated development environment|IDEs]] such as [[Microsoft Visual Studio]], Eclipse or [[Xcode]], in which the compiler is usually integrated with the text editor, the programmer can even [[double-click]] on an error and be taken directly to the line containing that error.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)