You are to write a leaf subprogram that will output the foll
You are to write a leaf subprogram that will output the following information: Your Name Your favorite color Your favorite sports team the main program should call your leaf routine and then exit using the system call.
Solution
void details(string name,String color,String STeam)
{
Cout<<\"Name\"<<name;
Cout<<\"Your Favourite color\"<<color;
Cout<<\"Your Favourite Sports Team\"<<STeam;
}
void main()
{details(XYZ,GREEN,US);
}
details:
syscall
syscall
