Functions in C++ - Definition, Types and Examples | सी++ में फंक्शन की परिभाषा , प्रकार एवं उदाहरण
A function in C++ is a block of code that performs a specific task. Functions help divide a large program into smaller, manageable parts. They make programs easier to understand, reuse, test, and maintain. C++ में Function code का एक block होता है, जो किसी विशेष कार्य को perform करता है। Functions की सहायता से एक बड़े program को छोटे और manageable parts में divide किया जा सकता है। इससे program को समझना, दोबारा उपयोग करना, test करना और maintain करना आसान हो जाता है। What is a Function in C++? A function is a named, reusable block of statements that performs a particular operation. A function executes when it is called from another part of the program or from another function. Function statements का एक named और reusable block होता है, जो कोई विशेष operation perform करता है। Function तब execute होता है जब उसे program के किसी अन्य भाग या दूसरे function से call किया जाता है। Example: #include <iostream> using namespace std; void display() { cout << "Welcome to C++ Progr...