8 Common Programming Mistakes

Here is a List of some common programming mistakes which are mainly faced by the beginners. 1. ...


Here is a List of some common programming mistakes which are mainly faced by the beginners.

1. Undeclared Variables: Before compiling the program or even writing the program we should carefully monitor that the variables we're using are already declared or not. The Compiler didn't understand the variables itself. we have to declare them before compiling.

2. Uninitialized Variables: The Advance languages like JAVA, Python handles the uninitialized variables. However we may get the errors with the Languages like C/C++

3. Setting the Variable to an uninitialized value: Users often start using the variables without initialization which may spread the garbage values to other sections of the program too.

4. Using a Single equal sign to check equality:

int c=10;
if(c=10)
 cout <<"Hello";
Always remember while writing any statement for comparison use '==' instead of '=' because '=' is use to assign the values instead of comparison.

5. Undeclared Functions:

void main()
{
hello();
}
void hello()
{
//
//
}
Always remember to put either a prototype for the function or the entire definition of the function above the first time you use the function.

6. Extra Semicolon:

void main()
{
if(1);
 cout <<"Hello";
}
Remember, the semicolon ';' never goes after the if, for, while, do while or functions statements else the program will function improperly.

7. Over Stepping the boundaries of array definitions or variables is also a major error done by the user which results into the incorrect results.

8. Misuse the && or || operators. Study the De Morgans Law instead.

Happy Coding :) & keep visiting 
Name

android facebook free-zone Freebies hacking How-to programming scripts video whatsapp
false
ltr
item
Mr Tricks: 8 Common Programming Mistakes
8 Common Programming Mistakes
http://1.bp.blogspot.com/-HbFiQPcXzN0/VI1sU8Ajr_I/AAAAAAAAAgk/sbBF3THWOxs/s1600/programmer_creattica_full.jpg
http://1.bp.blogspot.com/-HbFiQPcXzN0/VI1sU8Ajr_I/AAAAAAAAAgk/sbBF3THWOxs/s72-c/programmer_creattica_full.jpg
Mr Tricks
http://mr-tricks.blogspot.com/2014/12/8-common-programming-mistakes.html
http://mr-tricks.blogspot.com/
http://mr-tricks.blogspot.com/
http://mr-tricks.blogspot.com/2014/12/8-common-programming-mistakes.html
true
248440411475805434
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy