InidBIX.com
Arithmetic Aptitude Data Interpretation
Logical Reasoning Verbal Reasoning
General Knowledge
Sudoku Number puzzles Missing letters puzzles Logical puzzles Playing cards puzzles Clock puzzles
C Programming Java Programming
Data Structures Operating Systems Networking DATABASE Database Basics SQL Server Basics SQL Server Advanced SQL Server 2008 JAVA Core Java Java Basics Advanced Java UNIX Unix File Management Unix Memory Management Unix Process Managemnt
Aptitude Test Verbal Ability Test Verbal Reasoning Test Logical Reasoning Test C Programming Test Java Programming Test Data Interpretation Test General Knowledge Test
Group Disucssion HR Interview Questions Technical Interview Questions Body Language
"Nothing in life is to be feared, it is only to be understood."
- Marie Curie

C Programming - Input / Output - Discussion

@ : Home > C Programming > Input / Output > General Questions - Discussion
4. 

What does fp point to in the program ?

#include<stdio.h>

int main()
{
    FILE *fp;
    fp=fopen("trial", "r");
    return 0;
}

[A]. The first character in the file
[B].
A structure which contains a char pointer which points to the first character of a file.
[C]. The name of the file.
[D]. The last character in the file.

Answer: Option B

Explanation:

The fp is a structure which contains a char pointer which points to the first character of a file.


Write your comments here:


© 2008-2010 by IndiaBIX™ Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy