In the context of binary file, write C statement to perform the following tasks: (i) Declare a file pointer named ptrMember(ii) By using file pointer ptrMember, open the binary file member.bin for writing. (ii) By using file pointer ptrMember, open the binary file member.bin for writing. (iii) Write the following values into the member.bin binary file using THREE (3)separate statements: -char status = ‘V’; -char customerName[30] = “John Stone”; -int memberID =123456;

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section8.5: A Case Study: Pollen Count File Update
Problem 4E
icon
Related questions
Question

In the context of binary file, write C statement to perform the following tasks:
(i) Declare a file pointer named ptrMember(ii) By using file pointer ptrMember, open the binary file member.bin for writing.
(ii) By using file pointer ptrMember, open the binary file member.bin for writing.
(iii) Write the following values into the member.bin binary file using THREE (3)separate statements:
-char status = ‘V’;
-char customerName[30] = “John Stone”;
-int memberID =123456;

Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage