Macro in C Language
Thread TagsAdobe Illustrator Adobe InDesign Adobe Photoshop Android Development Android Programming Android Studio Automation Testing C / C++ Programming Career Options College Lounge css digital marketing Digital Marketing / SEO Fireworks Graphic Design Graphic designing Graphics Design Graphics Designing HTML? Illustrator Internship Training java classes in pune java training institute in pune logo Design logo designing Magento Photoshop PHP Programming QA react-native SEO Single Page Website Testing Typography UI UI/UX Development UI Design UI Designing UI development User Interface UX Design Web Designing Website Design Wordpress wp
Log in with your username and password
Register for free!
Registration at Smart Mentors is completely free and takes only a few seconds. By registering you’ll gain:
- Full Posting Privileges.
- Access to Private Messaging.
- Optional Email Notification.
- Ability to Fully Participate.
- Author Replies
- February 14, 2019 at 3:53 pm #53665
The C preprocessor is a macro preprocessor (enables you to characterize macros) that changes your program before it is compiled. These changes can be the consideration of header record, macro expansions and so on. All preprocessing directives start with a # symbol.
1) Macros are the identifiers that speak to proclamations or articulations as it were macros are a section of code which is been given a name.
2) #define directive is utilized to characterize macro.
3) Example, we have characterized a macro i.e SQUARE(x) x*x.
4) Here the macro decides the square of the given number.
5) Macro Declaration: #define name content.
Example : #define preprocessor
#define PI 3.1415
float radius, area;
printf(“Enter the radius: “);
area = PI*radius*radius;
You can likewise characterize macros that work like a function call, known as function like macros. For instance, #define circleArea(r) (3.1415*(r)*(r))
You must be register. Registration is 100% free.to reply to this thread.Please or