Wednesday, November 2, 2022

PREPORCESSOR DETECTIVE

 #include <iostream>

using namespace std;

#define max(x,y) (x>y?x:y)

#define msg(x) #x

#ifndef PI

 #define PI 3.1425

#endif

int main()

{

 cout<<PI;

 cout<<max(10,12)<<endl;

 cout<<msg(hello)<<endl;

}

No comments:

Post a Comment

CONSTRUCTURE IN PARENT CLASS

class Parent {     public Parent()     {         System.out.println("Parent Constrcutor");     }              } class Child extend...