Problem Statement - Output writing using structure copy and strcat use
struct Employee{double salary,hra;}; void change(Employee &a,double h=100) { a.salary+=1000; a.hra+=h; } int main() { Employee A={5000,2000}; cout<<"Initial Payment = "<<A.salary+A.hra<<endl; change(A,500); cout<<"After 1st Change = "<<A.salary+A.hra<<endl; change(A); cout<<"After 2nd Change = "<<A.salary+A.hra<<endl; return 0; }
Write the output of the above program. Assume that required header files are present.