Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

File Pointer.........

Posted on 2003-10-30
1
324 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 20 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

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…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

856 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