Logic Error Definition
Contents |
runtime error that may simply produce the wrong output or may cause a program to crash while running. Many different types of programming logical error vs syntax error mistakes can cause logic errors. For example, assigning a value to the syntax error definition wrong variable may cause a series of unexpected program errors. Multiplying two numbers instead of adding them together may
Runtime Error Definition
also produce unwanted results. Even small typos that do not produce syntax errors may cause logic errors. In the PHP code example below, the if statement may cause a logic error
Run Time Errors
since the single equal sign (=) should be a double equal sign (==). Incorrect: if ($i=1) { ... } Correct: if ($i==1) { ... } In PHP, "==" means "is equal to," while "=" means "becomes." Therefore, the incorrect if statement always returns TRUE, since assigning 1 to the variable $i returns a TRUE value. In the correct code, the if statement only c++ logic error example returns TRUE if $i is equal to 1. However, since the syntax of the incorrect code is acceptable, it will not produce a syntax error and the code will compile successfully. The logic error might only be noticed during runtime. Because logic errors are often hidden in the source code, they are typically harder to find and debug than syntax errors. Updated: April 27, 2012 Cite this definition: APAMLAChicagoHTMLLink http://techterms.com/definition/logic_error TechTerms - The Tech Terms Computer Dictionary This page contains a technical definiton of Logic Error. It explains in computing terminology what Logic Error means and is one of many software terms in the TechTerms dictionary. All definitions on the TechTerms website are written to be technically accurate but also easy to understand. If you find this Logic Error definition to be helpful, you can reference it using the citation links above. If you think a term should be updated or added to the TechTerms dictionary, please email TechTerms! ‹ Log On | Logic Gate › Tech Factor 7 / 10 © 2016 Sharpened Productions | Terms of Use | Privacy Policy | About | Contact
cause the program to stop working, it can produce incorrect data that may not http://www.computerhope.com/jargon/l/logierro.htm be immediately recognizable. Was this page useful? YesNo Feedback E-mail Share Print Search Recently added pages View all recent updates Useful links About Computer Hope Site Map Forum Contact Us How to Help Top 10 pages Follow us Facebook Twitter Google+ Pinterest YouTube RSS © 2016 Computer Hope Legal Disclaimer - Privacy Statement
the error. Logical errors -- Errors that indicate logic error definition the logic used when coding the program failed to solve the problem. You do not get error messages with logic errors. Your only clue to the existence of logic errors is the production of wrong solutions. [Chapter Contents] [Home] [Glossary] [Previous Slide] [Next Slide]
Invest Law Thesaurus Examples See in a sentence Example articles Quotes Word Lists Reference Education ESL Grammar Abbreviations Biography Books & Literature Examples Foreign Languages Spanish Resources WordFinder WordFinder 4 Pics 1 Word Answers Word Game Dictionary Words With Friends Cheat Menu Dictionary Dictionary YD Original Webster's American Heritage Wiktionary Ologies Computer Invest Law Thesaurus Examples See in a sentence Example articles Quotes Word Lists Reference Education ESL Grammar Abbreviations Biography Books & Literature Examples Foreign Languages Spanish Resources WordFinder WordFinder 4 Pics 1 Word Answers Word Game Dictionary Words With Friends Cheat Home Dictionary Definitionslogic error Related How would you define logic error? Add your definition here. Please enable JavaScript to view the comments powered by Disqus. comments powered by Disqus Also Mentioned In semantic errorTruth and Errorinformal-fallacysyntax erroralethiology predicate-logicsuberrorSPLDillegal operationglue logic Words near logic error in the dictionary logic designlogic devicelogic diagramlogic-diagramlogic errorlogic-fallacieslogic-fallacylogic functionlogic gatelogic-gate TRENDING NOW Follow YourDictionary Tweet Join YourDictionary today Create and save customized word lists. Sign up today and start improving your vocabulary! Please set a username for yourself. People will see it as Author Name with your public word lists. Username: