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

Tag

# #argc

3 posts · 0 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)

[Samuel Ingosi](https://hashnode.com/@enox) · [Jun 11, 2023](https://hashnode.com/posts/how-to-give-your-program-commands/64858d3c38309ef72cf4aa5e)

### [How to give your program commands.](https://noxcode.hashnode.dev/how-to-give-your-program-commands?utm_source=hashnode&utm_medium=feed)

Commandline arguments in C. While writing programs that give out values is great, user interaction is key to making your program usable. Imagine 'grep' without the ability to choose files to give it to ( see the manual pages for grep in GNU/Linux) to...

3 min read · [noxcode.hashnode.dev](https://noxcode.hashnode.dev/how-to-give-your-program-commands?utm_source=hashnode&utm_medium=feed)
