1 aWrite a single declaration statement that declares a file
1. a.)Write a single declaration statement that declares a file pointer variable named infile that would point to a file named data.txt to be opened for input.
b.)Write a single declaration statement that declares a file pointer variable named infile that would point to a file named data.txt to be opened for input.
c.) Write a single call statement that calls a void function named displayReceipt which accepts no parameters.
Solution
above statement will open the file data.txt with a filepointer dataFile with the help of which we can take a input from a file in to our program.
1.c
displayReceipt();
