---
title: "#argv articles | Hashnode"
description: "Explore 4 articles tagged #argv on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/argv"
---

Tag

# #argv

4 posts · 1 followers

[Jyotiprakash Mishra](https://hashnode.com/@jpmishra) · [Dec 24, 2023](https://hashnode.com/posts/different-mains/6588533eb2f36f98e1e9f553)

### [Different mains](https://blog.jyotiprakash.org/different-mains?utm_source=hashnode&utm_medium=feed)

Basic main Function: #include <stdio.h> int main() { // Program logic goes here return 0; } Explanation: This is the simplest form of the main function. It does not accept any command-line arguments. The program logic is placed within t...

2 min read · [blog.jyotiprakash.org](https://blog.jyotiprakash.org/different-mains?utm_source=hashnode&utm_medium=feed)

[Jyotiprakash Mishra](https://hashnode.com/@jpmishra) · [Dec 23, 2023](https://hashnode.com/posts/what-does-main-get/65875012f777ad3c499c6b73)

### [What does main get?](https://blog.jyotiprakash.org/what-does-main-get?utm_source=hashnode&utm_medium=feed)

In C, the main function typically takes two parameters: argc (argument count) and argv (argument vector). These parameters allow you to pass command-line arguments to your program. Here's a simple example to illustrate how to use these parameters: #i...

1 min read · [blog.jyotiprakash.org](https://blog.jyotiprakash.org/what-does-main-get?utm_source=hashnode&utm_medium=feed)
