Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

File Pointer.........

Posted on 2003-10-30
1
Medium Priority
?
343 Views
Last Modified: 2010-04-15
Hi,

Consider the following piece of code:
                            FILE *fp;
                            fp = fopen("myfile.dat","r");
    Now fp points to  what?
        1. The first character in the file.
        2. A structure which contains a char pointer  which points to the first character in the file.
        3. The name of the file.                                

Thanx.
0
Comment
Question by:hemanexp
1 Comment
 
LVL 6

Accepted Solution

by:
Ajar earned 60 total points
ID: 9655904
open  <stdio.h> to see the structure of  FILE structure

fp contains a lot of information about the file  in addition to the handle of the open file
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question