---
title: "Discussion on \"Do Comments Consume Memory\" | Hashnode"
description: "Discussion on \"Do Comments Consume Memory\". Do Comments in Code Consume Memory?\nWhen you’re writing code in C, C++, Java, Python, or any other programming language, you’ve probably wondered:👉 Do comments inside a program increase memory usage or affect performance?\nThis is a common doubt for ..."
url: "https://hashnode.com/posts/do-comments-consume-memory/68c4f3e5108f5ce168bcbd37"
---

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

Discussion

# [Do Comments Consume Memory](https://umarblog.hashnode.dev/do-comments-consume-memory?utm_source=hashnode&utm_medium=feed)

Do Comments in Code Consume Memory? When you’re writing code in C, C++, Java, Python, or any other programming language, you’ve probably wondered:👉 Do comments inside a program increase memory usage or affect performance? This is a common doubt for ...

Sep 13, 2025 · 3 min read · umarblog.hashnode.dev  
Read the article

-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#comments](https://hashnode.com/tag/comments)
-   [#c](https://hashnode.com/tag/c)
-   [#cpp](https://hashnode.com/tag/cpp)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#java](https://hashnode.com/tag/java)
-   [#first-blog](https://hashnode.com/tag/first-blog)

## Written by

[Umar Ansari](https://hashnode.com/@umaransari)

@umaransari · Ghaziabad, Uttar Pradesh

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

Beginner, Fresher, Road to Buld Career

Passionate learner in programming and technology. Writing blogs to simplify tough concepts for beginners like me.

## Responses 1

Markdown supported · ⌘↵ to post

[Sher Khan](https://hashnode.com/@khan483)

[Sep 15, 2025](https://hashnode.com/posts/do-comments-consume-memory/68c4f3e5108f5ce168bcbd37/comment/68c7f753cd363419d03a995c)

stdio <?PHP
