---
title: "Discussion on \"Reading and printing a string\" | Hashnode"
description: "Discussion on \"Reading and printing a string\". #include<stdio.h>\nvoid main(){\nchar s[100];\nprintf(“Enter a string “);\nscanf(“%s“,s);\nprintf(“The string is %s”,s);\n}"
url: "https://hashnode.com/posts/reading-and-printing-a-string/6750ec37279bbaf63140c0a2"
---

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

Discussion

# [Reading and printing a string](https://reading-and-printing-a-string.hashnode.dev/reading-and-printing-a-string?utm_source=hashnode&utm_medium=feed)

#include<stdio.h> void main(){ char s\[100\]; printf(“Enter a string “); scanf(“%s“,s); printf(“The string is %s”,s); }

Dec 4, 2024 · 1 min read · reading-and-printing-a-string.hashnode.dev  
Read the article

-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Balram](https://hashnode.com/@erbalram)

@erbalram

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

Mr. Coder

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
