c++ program on preprocessor directives

Preprocessor Directives in C++ Part – 2 0

Preprocessor Directives in C++ Part – 2

Program 1 // Preprocessor #include <iostream> using namespace std; #define factorial(n){\ int f=1;\ while(n!=0)\ {\ f=f*n;\ n–;\ }\ cout<<“factorial is : “<<f;\ } int main() { system(“cls”); int n; cout<<“Enter a number: “; cin>>n;...