Logo 
Search:

C++ Programming Articles

Submit Article
Home » Articles » C++ Programming » Homework HelpRSS Feeds

Program that provides an example of call by value for functions

Posted By: Lewis Evans     Category: C++ Programming     Views: 16086

Write a program that provides an example of call by value for functions.

Code for Program that provides an example of call by value for functions in C++ Programming

#include<iostream.h>
#include<conio.h>
main()
{
    clrscr();
    int i=10;
    void f(int);
    f(i);
}

void f(int i)
{
    cout<<"The number is :"<<i<<endl;
}
  
Share: 



Lewis Evans
Lewis Evans author of Program that provides an example of call by value for functions is from London, United Kingdom.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!