In any programming language, parameters are the ones you define at function prototypes and the arguments are the ones which you pass a value to a parameter.
Eg: int foo(String x) //here String x is a parameter
{//some code}
If you call "foo("fooarg"), here fooarg is the argument you passed to the parameter String x.
Thank you so much for explaining it with examples, I get a clear understanding
You're not going to master the rest of your life in one day. Don't stress. Master the day. Make this a daily reminder.
Bookmarks