# Arguments when Calling a Function

**URL:** <https://root-forum.cern.ch/t/arguments-when-calling-a-function/45114>\
**Category:** Newbie\
**Created:** [May 27, 2021, 1:46pm UTC](https://root-forum.cern.ch/t/arguments-when-calling-a-function/45114 "2021-05-27T13:46:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabvamp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/eada6e/32.png) [@gabvamp](https://root-forum.cern.ch/u/gabvamp)\
**Post date:** [May 27, 2021, 1:46pm UTC](https://root-forum.cern.ch/t/arguments-when-calling-a-function/45114/1 "2021-05-27T13:46:56Z")

</div>

Hi, I’m new to programming in ROOT (and C in general). I was wondering about the arguments in main functions. I’ve noticed that most main functions that I’ve seen begin with the arguments/parameters shown below. How exactly should the arguments be formatted when calling the function, and what do the arguments themselves mean/what are they asking for?

```auto
int main( int argc, char** argv )

```

_ROOT Version:_ 6.22/06  
_Platform:_ Linux  
_Compiler:_ gcc

* * *

---

<div class="post-metadata">

**Author:** ![yus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/9fc348/32.png) [@yus](https://root-forum.cern.ch/u/yus)\
**Post date:** [May 27, 2021, 2:18pm UTC](https://root-forum.cern.ch/t/arguments-when-calling-a-function/45114/2 "2021-05-27T14:18:00Z")

</div>

Hi Gabija,

you may want to check this answer on StackOverflow: [c++ - What does int argc, char \*argv[] mean? - Stack Overflow](https://stackoverflow.com/questions/3024197/what-does-int-argc-char-argv-mean/3024202#3024202)
