GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Sonata  >  C
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 8 of 31    Print  
In the following code;
#include<stdio.h>
main()
{
FILE *fp;
fp= fopen("trial","r");
}
fp points to:
a) The first character in the file.
b) A structure which contains a "char" pointer which points to the first character in the file.
c) The name of the file. d) None of the above.


  
Total Answers and Comments: 1 Last Update: October 23, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 23, 2005 17:36:27   #1  
shrutimitra Member Since: October 2005   Contribution: 16    

RE: In the following code;
b) A structure which contains a char pointer which points to the first character in the file.
 
Is this answer useful? Yes | No

 Related Questions

Point out error, if any, in the following program main() { int i=1; switch(i) { case 1: printf("nRadioactive cats have 18 half-lives"); break; case 1*2+4: printf("nBottle for rent -inquire within"); break; } }
No error. Constant expression like 1*2+4 are acceptable in cases of a switch.  

Point out the error, if any, in the following program main() { int a=10,b; a>= 5 ? b=100 : b=200; printf("n%d",b); }
lvalue required in function main(). The second assignment should be written in parenthesis as follows: a>= 5 ? b=100 : (b=200);  

In the following code, in which order the functions would be called? a= f1(23,14)*f2(12/4)+f3(); a) f1, f2, f3 b) f3, f2, f1 c) The order may vary from compiler to compiler d) None of the above

What would be the output of the following program? main() { int i=4; switch(i) { default: printf("n A mouse is an elephant built by the Japanese"); case 1: printf(" Breeding rabbits is a hair raising experience"); break; case 2: printf("n Friction is a drag"); break; case 3: printf("n If practice make perfect, then nobody's perfect"); } } a) A mouse is an elephant built by the Japanese b) Breeding rabbits is a hare raising experience c) All of the above

What is the output of the following program? #define SQR(x) (x*x) main() { int a,b=3; a= SQR(b+2); printf("%d",a); } a) 25 b) 11 c) error d) garbage value

In which line of the following, an error would be reported? 1. #define CIRCUM(R) (3.14*R*R); 2. main() 3. { 4. float r=1.0,c; 5. c= CIRCUM(r); 6. printf("n%f",c); 7. if(CIRCUM(r))==6.28) 8. printf("nGobbledygook"); 9. } a) line 1 b) line 5 c) line 6 d) line 7

In the following code; #include main() { FILE *fp; fp= fopen("trial","r"); } fp points to: a) The first character in the file. b) A structure which contains a "char" pointer which points to the first character in the file. c) The name of the file. d) None of the above.
Tags : Pointer

We should not read after a write to a file without an intervening call to fflush(), fseek() or rewind() < TRUE/FALSE>
True  

If the program (myprog) is run from the command line as myprog 1 2 3 , What would be the output? main(int argc, char *argv[]) { int i; for(i=0;i

If the following program (myprog) is run from the command line as myprog 1 2 3, What would be the output? main(int argc, char *argv[]) { int i,j=0; for(i=0;i


 Sponsored Links

 
Related Articles

jQuery Table Row Finished Code

jQuery Table Row Finished Code The Finished Code Our second example page has demonstrated table row striping highlighting tooltips collapsing expanding and filtering Taken together the JavaScript code for this page is mosgoogle geshibot lang php&quot; document ready function var highlighted
 

jQuery Interacting with Other Code

jQuery Interacting with Other Code We learned with our sorting and paging code that we can t treat the various features we write as islands The behaviors we build can interact in sometimes surprising ways; for this reason it is worth revisiting our earlier efforts to examine how they coexist with t
 

jQuery Completed sorting and paging code

Learning jQuery The Finished Code The completed sorting and paging code in its entirety follows mosgoogle geshibot lang php&quot; fn alternateRowColors function tbody tr odd this removeClass even addClass odd ; tbody tr even this removeClass odd addClass even ; return this; ; document
 

The Use of Trial and Error To Solve Problems

The Use of Trial and Error To Solve Problems Some complex problems can be solved by a technique that is called trial and error Trial and error is typically good for problems where you have multiple chances to get the correct solution However this is not a good technique for problems that don t give
 

How Code Reviews and PMD Can Crush Bugs In Your Code

How Code Reviews and PMD Can Crush Bugs In Your Code The ability to review your code is one of the best methods to find bugs and other issues which can cause your program to perform poorly In fact one of the hardest things about writing a program is debugging it When programmers get together and sha
 

WebSphere V5.0 : Debugging - Step-through code

WebSphere V5 0 Debugging Step through code In this tutorial you will learn about WebSphere V5 0 Debugging Stepping through the execution of a Java program Step over Step into Run to return and Run to line mosgoogle Stepping through the execution of a Java program When a thread is suspended the step
 

ASP.NET 2.0 Code Directory

ASP NET 2 0 Tutorial Code Directory In this tutorial you will having a deeper look at the Code Directory the Code Beside Model and the evolution of the Code Behind model learn about Partial Classes Sharing Source components Creating a Component you will learn how to create a Application Code folder
 

Working with Legacy Code and COM Components

Working with Legacy Code COM Components In this tutorial you will learn to use COM Components Understand Runtime Callable Wrappers Type Library Importer TLBIMP Using COM Components Directly Using COM Components and Creating Com Application mosgoogle Using COM Components Component Object Model COM
 

ActiveX Controls and Legacy Code

Working with Legacy Code ActiveX Control In this tutorial you will learn how to use ActiveX Control the windows forms ActiveX Control Importer Importing Controls with Toolbox Using ActiveX Controls on Windows Forms and you will also learn how to use Platform Invoke mosgoogle As enterprises grow in s
 

Exploring the Forms Designer generated code

VB NET 2005 Free Training Exploring the Forms Designer generated code As you create a new project in the Visual Basic the IDE generally automatically adds lots of lines of code on its own Visual Basic 2005 comes with an option to skip over this behavior of the Visual Basic IDE The default option com
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape