# C parameter doubt

**URL:** <https://forum.kirupa.com/t/c-parameter-doubt/315741>\
**Category:** programming\
**Created:** [November 3, 2010, 7:35am UTC](https://forum.kirupa.com/t/c-parameter-doubt/315741 "2010-11-03T07:35:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadaj](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kadaj/32/9061_2.png) [@kadaj](https://forum.kirupa.com/u/kadaj)\
**Post date:** [November 3, 2010, 7:35am UTC](https://forum.kirupa.com/t/c-parameter-doubt/315741/1 "2010-11-03T07:35:46Z")

</div>

```auto

square(void* noName, int arg) 
{
    // code...
}

```

void\* is a null pointer isn’t it?  
Why give the argument a null pointer?

With the about code calling square(5) is valid. So what other reason is there to give it 2 arguments.  
What might be the use of the first argument?

Is it similar to what we do in as like [FONT=“Courier New”]function foo(myVar:SomeVar=null, num:int):void[/FONT] ?

Taking some interest in C lately 😛
