---
title: "Discussion on \"Macro in C \" | Hashnode"
description: "Discussion on \"Macro in C \". What is a macro?\nA macro is a text replacement rule defined with #define that swaps names for text before the compiler runs.\nFor Example:\n#define PI 3.14159\n\nEvery time you write \"PI\" in your code, th"
url: "https://hashnode.com/posts/macro-in-c/69fc96233d9a9c1019c37491"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Macro in C](https://ruthr.hashnode.dev/macro-in-c?utm_source=hashnode&utm_medium=feed)

What is a macro? A macro is a text replacement rule defined with #define that swaps names for text before the compiler runs. For Example: #define PI 3.14159 Every time you write "PI" in your code, th

May 7 · 1 min read · ruthr.hashnode.dev  
Read the article

## Written by

[Ruth Rojas](https://hashnode.com/@ruthr)

@ruthr · Kentucky

  
[View profile](https://hashnode.com/@ruthr)

Software/Systems Engineer

I am a Systems Engineer with experience in leveraging a variety of technologies to find the easiest and most efficient and effective way to meet the needs of the project's requirements. I like to build software and systems to help ease mundane and complex tasks.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
