---
title: "Discussion on \"Reversing a String In C\" | Hashnode"
description: "Discussion on \"Reversing a String In C\". This C program defines two functions to reverse a given string:\n\n_strlen(char *str): calculates the length of a string str.\n\nreverse_string(char *str): reverses the string str by swapping its characters.\n\n\nThe main function uses reverse_string to rev..."
url: "https://hashnode.com/posts/reversing-a-string-in-c/643e78d75c8b5926db7fa137"
---

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

Discussion

# [Reversing a String In C](https://fridah.hashnode.dev/reversing-a-string-in-c?utm_source=hashnode&utm_medium=feed)

This C program defines two functions to reverse a given string: \_strlen(char \*str): calculates the length of a string str. reverse\_string(char \*str): reverses the string str by swapping its characters. The main function uses reverse\_string to rev...

Apr 18, 2023 · 2 min read · fridah.hashnode.dev  
Read the article

-   [#c](https://hashnode.com/tag/c)
-   [#string-methods](https://hashnode.com/tag/string-methods)
-   [#strings-and-methods](https://hashnode.com/tag/strings-and-methods)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Fridah](https://hashnode.com/@Fridah)

@Fridah

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

I am currently learning Software engineering and am here to document my coding journery

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
