answersLogoWhite

0


Best Answer

The most common error in C/C++ is a buffer overrun. Even if no problems arise through normal use, hackers can exploit the overrun to inject their code into yours. While this can highlight the problem, not all hackers have good intentions...

Another common error is to assign instead of compare a value, due to the similarity between the operators. The compiler can't always see the problem and replicating the problem at runtime may not be obvious.

if( x = y) // should be x == y

{

// always executes

}

else

{

// never executes

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which type of programming error leads to garbage stink value in a c plus plus program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is a decision in programming?

A decision is a statement that makes the CPU compare two or more values in a TRUE-or-FALSE way. Once a decision is evaluated, it usually leads to control being diverted to a different part of the program.


What are general characteristics of C language?

The following are the good characteristics of a good program in C language:Always maintain good Indentation.Write comments where ever necessary.Check the program for null inputs.Check the program for garbage inputs.


What is a monolithic program?

Monolithic Programming indicates the program which contain a single function for the large program. It is always fight with modular programming to placed the identity in programming world. Modular programming help the programmer to divide the whole program into different modules and each module is separately developed and tested. Then the linker will link all these modules to form the complete program. On the other hand monolithic programming will not divide the program and it is a single thread of execution. When the program size increases it leads inconvenience and difficult to maintain. Disadvantages of monolithic programming: 1. Difficult to check error on large programs. 2. Difficult to maintain. 3. Code can be specific to a particular problem. i.e. it can not be reused. Advantage of modular programming: 1. Modular program are easier to code and debug. 2. Reduces the programming size. 3. Code can be reused in other programs. 4. Problem can be isolated to specific module so easier to find the error and correct it. Answer posted by: Md. Kahinur Islam Faculty BASE Ltd.


What is the differences between a logical error and syntax error?

Answer: Syntax Error - Occurs when the code isn't formatted or typed correctly. i.e. In python, typing If instead of if because it only recognizes lowercase. Logical Error - Occurs when there is a fallacy of reasoning. i.e. In python, typing if x < 0 and x > 5. Since a value can't be less than 0 and greater than 5, a logical error will occur. Answer: a) Syntax Error Definition : An error cause by violation of the programming language used. Symptoms : Code fails to compile (error message from compiler) b) Logical Error Definition : An error caused by violation of logic (range, comparison, etc.). This error will NOT crash the program. Symptoms : Unexpected output c) Runtime Error/Execution Error Definition : Any error, normally logical error that cause the program to crash. Symptoms : Program crashes.


What are the advantages and disadvantages of C language?

Advantages of C languageSpeed of the resulting application. C source code can be optimized much more than higher level languages because the language set is relatively small and very efficient.That leads to a second advantage that C has which is its application in Firmware programming (hardware). That is due to its ability to use/work with assembly and communicate directly with controllers, processors and other devices.C Programming language is very easier to learn. The main advantages of C language is that there is not much vocabulary to learn, and that the programmer can arrange for the program is very fast.Disadvantages of C LanguageC does not have OOPS feature that's why C++ is developed. If you know any other modern programming language then you already know its disadvantages.There is no runtime checking in C language.There is no strict type checking (for example: we can pass an integer value for the floating data type).C doesn't have the concept of namespace.C doesn't have the concept of constructors and destructors.

Related questions

What is the difference between Sampling error vs sampling bias?

Sampling error leads to random error. Sampling bias leads to systematic error.


What is a decision in programming?

A decision is a statement that makes the CPU compare two or more values in a TRUE-or-FALSE way. Once a decision is evaluated, it usually leads to control being diverted to a different part of the program.


Where is the following qoute taken from Any error about creation also leads to an error about God?

Thomas Aquinas


What are general characteristics of C language?

The following are the good characteristics of a good program in C language:Always maintain good Indentation.Write comments where ever necessary.Check the program for null inputs.Check the program for garbage inputs.


How do you hack counter strike source?

You inject a dll into the running gameprocess using a (usually custom-coded) program. It takes extensive programming knowledge to do yourself, and usually leads to viruses if you use others' hacks. Be very careful


What is the meaning of deceiver?

One who deceives; one who leads into error; a cheat; an impostor.


Where can I take online programming courses ?

Education Portal Academy's provide video tutorials, quizzes, and exams to prepare you for a programming job. Its also free and leads to college credits.


Why does Indonesia produce so much garbage?

Anyone on earth produces garbage and waste actually american or chinese produce more garbage than indonesia but due to lack of garbage and waste management in Indonesia, it leads to mountainous of garbage everywhere in Indonesia the first reason in the government has not clear rule to tackle it while most indonesian don't know how to live in clean environment


What leads to oceanic pollution?

Dumping garbage, waste, and whatnot into a lake, river, or any other water-based land feature.


Who leads the us in its space exploration program?

that's a good question


The person who leads the show is who?

Ans: It depends on what kind of show do you mean. Is it a tv show , in the theater , a simple celebration or in a sports program? Basically, the one who leads an ordinary program is called the Master of Ceremony.


What is a monolithic program?

Monolithic Programming indicates the program which contain a single function for the large program. It is always fight with modular programming to placed the identity in programming world. Modular programming help the programmer to divide the whole program into different modules and each module is separately developed and tested. Then the linker will link all these modules to form the complete program. On the other hand monolithic programming will not divide the program and it is a single thread of execution. When the program size increases it leads inconvenience and difficult to maintain. Disadvantages of monolithic programming: 1. Difficult to check error on large programs. 2. Difficult to maintain. 3. Code can be specific to a particular problem. i.e. it can not be reused. Advantage of modular programming: 1. Modular program are easier to code and debug. 2. Reduces the programming size. 3. Code can be reused in other programs. 4. Problem can be isolated to specific module so easier to find the error and correct it. Answer posted by: Md. Kahinur Islam Faculty BASE Ltd.