+ 1

What are actual and formal parameter??plz give an example

6th Jul 2016, 12:15 PM
Anshuman Sharma
Anshuman Sharma - avatar
2 ответов
+ 3
actual parameter are the real value that its been sent to the function while formal parameter are just place that we stored that value
6th Jul 2016, 7:02 PM
Sunusi Muhammad Raji
Sunusi Muhammad Raji - avatar
+ 1
#include <iostream.h > int sum (int,int); int main () { int a,b,c; cout <<"enter two values"; cin>>a>>b; c=sum (a,b);//actual argument cout <<"sum"<<c; return 0; } int sum(int x,int y)//formal arguments { int z; z=x+y; return (z); }
8th Aug 2016, 9:12 PM
sachin tomar
sachin tomar - avatar