#include <iostream.h> #include <conio.h> void main() { clrscr(); int sum(int ); int mynumber=20; mynumber=sum(mynumber); cout<<mynumber; getch(); } int sum(int number) { number=number+5; return number; }
Quote:e i think i have change the modify the value of variable actual mynumber with out using passing pointer as arguments to function
mynumber
main
sum
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)