Programming Reference/Librarys
Question & Answer
Q&A is closed
Constants and Macros
#include <iostream> /* including standard library */ #define identifier replacement_name #define identifier(identifier_list) replacement_name
#include <iostream> /* including standard library */ #define ANSWER 42 using namespace std; int main(void){ cout << "the answer to life the universe and everything is " << ANSWER << endl; }
the answer to life the universe and everything is 42
#include <iostream> /* including standard library */ #define ANSWER 42 using namespace std; int print ( void ) { cout << "the answer to life the universe and everything is " << ANSWER << endl; return 0; } int main(void) { print(); return 0; }
the answer to life the universe and everything is 42