How and Why To Learn Function ?

Saturday, December 26, 2024

Functions :
Why Need Arises ?

  • Suppose we have similar set of statements in Program , then every time writing same statements again is quite boring , so C provide us a way by which we can simply separate out the common statements and put them into the function & every time instead of writing that block , we simply call that function
  • It Reduces your writing efforts.
Function , How to Learn ?
  1. What is Parameter ?
  2. What is Return Type ?
  3. What is Function Call ?
  4. What is Function Definition ?
  5. What is Prototype Declaration ?
Example :
Output : Hello India

Output :
  1. I am in Pune
  2. I am in Delhi
  3. I am in Bombay

0 comments:

Total Visits

  © Blogger templates Newspaper by Ourblogtemplates.com 2008

Back to TOP