Actual Arguments and Formal Arguments in C++ – Difference with Examples
In C++, arguments are values or expressions passed to a function when it is called. Function parameters receive these values and make them available inside the function. Arguments are mainly discussed in two categories: Actual Arguments and Formal Arguments . C++ में Arguments वे Values या Expressions होते हैं जिन्हें Function Call करते समय Function को दिया जाता है। Function के Parameters इन Values को प्राप्त करते हैं और Function के अंदर उनका उपयोग करने में सहायता करते हैं। Arguments को मुख्य रूप से दो श्रेणियों में समझा जाता है: Actual Arguments और Formal Arguments । 1. Actual Arguments – एक्चुअल आर्गुमेंट्स Actual arguments are the values, variables, or expressions supplied to a function when it is called. They are also known as Arguments or Actual Parameters . Actual Arguments वे Values, Variables या Expressions होते हैं जिन्हें Function Call करते समय Function को पास किया जाता है। इन्हें Arguments या Actual Parameters भी कहा जाता है। Example: addition(10, 20); Here, 10 and 20 a...