functions and function prototyping in c++
#include <iostream> using namespace std ; // int sum(int a, int b){ // int c = a+b; // return c; // } /**********FUNCTION PROTOTYPE************* */ int sum ( int a , int b ); //ab program run hojaega void greet ( void ); // void greet();---> acceptable hai //ye assurity deta hai ki sum function aage hai //int sum(int a, int b);--->acceptable //int sum(a, b);---> not acceptable //int sum(int, int);--->acceptable int main () { //compiler main function se read krna start krta code ko. /*************FUNCTION*************/ /*main is itself a function and yaha return zero ka mtlb hai ki ye program successfully execute hogya ha and koi dikkat nhi aai hai*/ int k; int s; cout << "enter the value of k " << endl; cin >> k; cout << "enter the value of s " << endl; ...