What type of error in the following program? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What type of error in the following program?

your options are a). Syntactical error b). Run Time error c). Logical error d). Any other error(then write in answer what type of error) https://code.sololearn.com/c5K63aCs50IM/?ref=app

30th Mar 2019, 4:39 PM
Abhishek Dimri
Abhishek Dimri - avatar
1 Answer
+ 2
When you run your code snippet, you can see the error is using the same variable names twice, which violates the rules of C++. Do you know the special name for rules of programming language?
30th Mar 2019, 5:49 PM
Gordon
Gordon - avatar