Q:

Create a nested struct to store a person’s name, address, and phone numbers. The struct should have 3 fields for the name, address, and phone. The address fields and phone fields will be structs

0

Create a nested struct to store a person’s name, address, and phone numbers. The struct should have 3 fields for the name, address, and phone. The address fields and phone fields will be structs.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

>> person = ...

 struct('name','Mary','address',struct('street',...

'226 West Elm Rd','City','Boston','State','MA',...

'ZipCode',02215),'PhoneNum',struct('AreaCode',...

617,'Number',9156687));

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now