#include <iostream>
#include "stdlib.h"
using namespace std;
struct var{
int a;
int b;
int result;
};
void adD(var&);
int main()
{
int a;
int b;
cout<<"please ente the value a ==== "<<endl;
cin>>a;
cout<<"please ente the value b ==== "<<endl;
cin>>b;
var v1;
adD(v1);
system("cls");
cout<<"the value of result == "<<v1.result<<endl;
return 0;
}
void adD(var& v1){
v1.result = (v1.a)+(v1.b);
}
narendra_kuma 0 Newbie Poster
mrnutty 761 Senior Poster
Cross213 -5 Posting Whiz in Training
Cross213 -5 Posting Whiz in Training
tajendra 9 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.