answersLogoWhite

0

What is logic error in c plus plus?

Updated: 10/17/2022
User Avatar

Wiki User

11y ago

Best Answer

A logic error is an error that will not cause the program to crash, but will nevertheless cause the program to behave in a way that is unexpected or otherwise incorrect. By way of example, a program that converts Fahrenheit to Celsius will behave incorrectly if the program is written to multiply and divide first instead of adding or subtracting first (F-32*5/9=C instead of (F-32)*5/9=C). In this case, simply forgetting the enclosing parentheses caused the logic error.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is logic error in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you solve error c plus plus ntvdm CPU illegal?

Use the debugger to locate the error.


What are logical classes in c plus plus?

There is no such thing. Logic is bitwise operation, not a data type.


Microsoft visual c plus plus rumetime library runtime error cant access game?

runtime error


A statement that contains an error in logic is?

Technically speaking, an "error in logic" (a fallacy) is a case where the premises do not properly support the argument made. Fallacies are not to be confused with factual errors, wherein the error is caused by a lack of proper information.


Compare java arithmetic and logic operators with c arithmetic and logical operators?

They are very similar,but when we do logic operators there are still some differences.In c or c plus plus ,logic true can be expressed as'true' or '0',but in java,true is just 'true'.If you gave a zero,it will treat it as type of integer ,and so as false.


When you install visual c plus plus 2008 express edition it says an error?

Use the Microsoft support website to locate the error message and the solution to the error.


Method for minimising logic error?

BASICALLY, to minimise logic error, you need to stop being a tutti and be more of a kutha


How is c language different from fuzzy logic?

fuzzy logic is a logic which we have to implement in c language


How do you fix the Microsoft c plus plus error?

Too many errors possible to say. Please elaborate.


What is the Logic to print the letters from A to Z without using printf in Turbo C plus plus?

#include<iostream> int main() { using namespace std; char c='A'; do { cout<<c; }while(c++<'Z'); cout<<endl; }


What type of procedural error often involves and error in logic?

Analysis


What is a semantic error in vb and give examples?

An example of semantic error is: a+b = c.