Answers for "using define in cpp"

C++
0

#define in cpp

// The #define preprocessor directive creates symbolic constants
#include <iostream>
using namespace std;

#define CONSTANT 2.71828

int main () {
   cout << "Declared constant: " << CONSTANT << endl; 

   return 0;
}
Posted by: Guest on October-20-2020

Browse Popular Code Answers by Language