60 350
Assignments Done
98%
Successfully Done
In April 2018

Answer to Question #5916 in C++ for kuldeep

Question #5916
how to #define in c++.Give me an example also
Expert's answer
Example:
#define PI 3.14159
#define PI 3.14 + 0.00159

Nested:
#include <iostream.h>
#define WHISKEY "Whiskey"
#define MARTINI "Martini and " WHISKEY
void main() {cout << MARTINI;}
output: Martini and Whiskey

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions