#include #include using namespace std; struct Emp { // dealing with different datatypes // declared member variables string name; int age; double salary; }; // initiating struct in an external block // soce is public to all members struct Emp emp;// initiating struct //creating and setting a reference of a function void branch1(); int main() { cout << " emp at main office \n"; emp.name = "John Doe"; emp.age = 42; emp.salary = 6500.54 + 10; cout << emp.name << " // " << emp.age << " // " << emp.salary << "\n---- end of struct---\n"; branch1(); return 0; } void branch1() { cout << " emp at branch1 office \n"; emp.name = " Dean Delta"; emp.age = 24; emp.salary = 3500.74; cout << emp.name << " // " << emp.age << " // " << emp.salary << "\n --- end of struct----\n"<< endl; cout<< endl; }