Asked by Brittany Hoffman on Jul 16, 2024
Verified
The statement ____ passes a copy of the structure member emp.idNum to a function named display() .
A) display(*emp.idNum) ;
B) display(emp.idNum) ;
C) display(&emp.idNum) ;
D) display(emp->idNum) ;
Structure Member
A variable within a structure in programming that represents a specific piece of data within the structured data type.
Emp.idNum
Indicates an identifier number (idNum) associated with an employee (Emp), commonly used in databases.
Display()
A function or method in programming used to output or visually present data to the user.
- Implement pointers in structures to directly manipulate data.
Verified Answer
KG
Kabir GandhiwadiJul 22, 2024
Final Answer :
B
Explanation :
Option B is correct because it directly passes the value of the structure member emp.idNum to the function, which means a copy of emp.idNum is given to the function.
Learning Objectives
- Implement pointers in structures to directly manipulate data.