Problem Statement - Finding and removing Syntax Errors
Rewrite the following C++ code after removing any/all syntactical errors with each correction underlined.
Note: Assume all required header files are already being included in the program.
#define Formula(a,b) = 2*a+b void main() { float X=3.2;Y=4.1; Z=Formula(X,Y); cout<<'Result='<<Z<<endl; }
Solution
CSKC| Created: 31-Dec-2018 | Updated: 1-Jan-2019|CBSE12A-2016