C How to Program (8th Edition)
8th Edition
ISBN: 9780133976892
Author: Paul J. Deitel, Harvey Deitel
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 10, Problem 10.6E
Given the following structure and variable definitions, write an expression that can be used to access the structure members in each of the following parts:
- Member lastName of structure customerRecord.
- Member lastName of the structure pointed to by customerptr.
- Member firstName of structure customerRecord.
- Member firstName of the structure pointed to by customerPtr.
- Member customerNumber of structure customerRecord.
- Member customerNumber of the structure pointed to by customerPtr.
- Member phoneNumber of member personal of structure customerRecord.
- Member phoneNumber of member personal of the structure pointed to by customerPtr.
- Member address of member personal of structure customerRecord
- Member address of member personal of the structure pointed to by customerPtr.
- Member city of member personal of structure customerRecord.
- Member city of member personal of the structure pointed to by customerPtr.
- Member state of member personal of structure customerRecord.
- Member state of member personal of the structure pointed to by customerptr.
- Member zipcode of member personal of structure customerRecord.
- Member zipcode of member personal of the structure pointed to by customerPtr.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Write a program that performs the following procedures: 01. Structure stores marks of 7 courses with total marks and grades. 02. Get data from the user and store it inside the structure by returning from a user-defined function. 03. Calulate's the grade by passing the pointer of the total marks variable to the user-defined Grade Calculator function. 04. Calculates the grade and store it inside the structure's grade attribute. 05. Prints that structure data of marks and grades.
do it in c++ language
Let EmployeeInfo be the name of a structure for employee information. Which one declares a function showInfo that has read-only access of the members of the passed structure when it is called?
None of these
void showInfo(EmployeeInfo &emp);
void showInfo(const EmployeeInfo &emp);
void showInfo(EmployeeInfo *empPtr);
Let EmployeeInfo be the name of an employee information structure.
When called, which one declares a function showInfo that has read-only access to the members of the provided structure?
None of these
void showInfo(EmployeeInfo &emp);
void showInfo(const EmployeeInfo &emp);
void showInfo(EmployeeInfo *empPtr);
Chapter 10 Solutions
C How to Program (8th Edition)
Ch. 10 - Prob. 10.5ECh. 10 - Given the following structure and variable...Ch. 10 - Prob. 10.7ECh. 10 - (Using Unions) Create union integer with members...Ch. 10 - (Using Unions) Create union floatingPoint with...Ch. 10 - (Right Shifting Integers) Write a program that...Ch. 10 - (Left Shifting Integers) Left shifting an unsigned...Ch. 10 - (Packing Characters into an Integer) The...Ch. 10 - (Unpacking Characters from an Integer) Using the...Ch. 10 - (Reversing the Order of an Integers Bits) Write a...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
What two common data structures were included in Plankalkl?
Concepts of Programming Languages (11th Edition)
List the components of a database.
Database Concepts (8th Edition)
Write a variable declaration for an Integer variable named intUnitsSold.
Starting Out With Visual Basic (8th Edition)
Consider the adage Never ask a question for which you do not want the answer. a. Is following that adage ethica...
Experiencing MIS
The ____________ is always transparent.
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Enter the data of 10 students by creating the structure having members id, first_name, second_name, age, contact number, email_id. Create a function SearchStudent() that search the student by his/her id. Id of each student should be unique. use C++ and structurs.arrow_forwardExplain the term functions with default parameters.arrow_forwardCreate a structure, Person with {Ph_no(int), Address, DOB, Name} where last 3 fields are the structure variables of the structure types as mentioned below and defined outside the Person and create variables of the structure, Person.arrow_forward
- Q3 OCaml type signature 1 Point The OCaml type signature val f : 'a -> a = indicates that function f has a parameter and return value that can be any type, as long as the types of f 's parameter and return value are the same. True False Q4 OCaml structured return values 1 Point OCaml, unlike most functional languages, does not allow functions to return structured values. True Falsearrow_forwardUser define functions are said to have: definition characteristics usability all of the abovearrow_forwardx = apple . price; multiply apple by price and assign the result to the variable x assign the value of the data member price in the structure object apple to the variable compare the value of x to the value of data member apple.price set the value of price data member in the structure object apple to be equal to xarrow_forward
- In C programming Create a structure course that is made from the following fields:• Department (string, 15 characters)• Course number (integer, 4 digits, leading 0 if necessary)• Course title (string, 30 characters)• Credits (short, 1 digit)Complete with the required typdef.arrow_forwardWhen establishing new instances of a structure, why is it important to make use of the new operator?arrow_forwardIt is necessary to outline the regulations that apply to functions with default parameters.arrow_forward
- The structure object is supplied as a function parameter to the definition of the function in this manner, with the object representing the members of the structure and their values. * Structure Passing by Reference Using the Value Function to Pass Structure Structure That Returns Structures' pointersarrow_forwardplease use this format:;purpose:;contract:;example;header:;template:;function:;testing:arrow_forwardwrite an expression that can be used to access the structure members in each of the following parts:a) Member lastName of structure customerRecord.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Structured Chart; Author: Tutorials Point (India) Ltd.;https://www.youtube.com/watch?v=vdUO-sGA1DA;License: Standard YouTube License, CC-BY
Introduction to Structure Charts; Author: Christopher Kalodikis;https://www.youtube.com/watch?v=QN2bjNplGlQ;License: Standard Youtube License