Hi gys how are you, I really need your help to understand the idea for putting some parameters with main function, it is like this ( int main ( int a , int b , char* c) )
what is this and when we use it and how!!! ... I really need to understand this

>it is like this ( int main ( int a , int b , char* c) )
Then it's wrong. The main function only supports these two definitions:

int main ( void )
{
  /* ... */
}
int main ( int argc, char *argv[] )
{
  /* ... */
}

Could you rephrase your question, please?

You're talking about command line parameters. Narue is correct. You can check out this information on how to use the command line.

thank you gys for this information but now
I want to understand what is the point behind this I mean in which cases we use this and how to use it
if not problem to you, please show me examples or recommend me books to read (that are possible to find), or some links I can go


thank you all gys I really appreciate your help
with best wishes
good luck

thank you gys for this information , but now I want to understand how it works
and in which cases and why we use it
I really want to understand this , and please if it is not problem you show me the books that
I can read from them about this or links or tutorials or examples

thank you I really appreciate your help

good luck

Is it so important that you have to bump your thread with the same question after only six minutes?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.