Skip to content
Permalink
2bfcae8bc5
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
14 lines (11 sloc) 336 Bytes
#include <iostream>
using namespace std;
#define NAME "Taran" // defines a data value without using the string NAME = "aaa"; stuff
#define print_taran
int main() {
cout << NAME << endl;
#ifdef print_taran
cout << "Taran"; // will only print Taran if the value in the ifdef is defined previously
#endif
return 0;
}