ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Write a program which has the following seven functions. 
The functions should be:

•	main() this calls the other 6 functions
•	fget_long() a function which returns a long data 
type from a file
•	fget_short() a function which returns a short 
integer variable from a file
•	fget_float() a function which returns a floating 
point variable from a file
•	fprt_long() a function which prints its single, 
long argument into a file
•	fprt_short() a function which prints its single, 
short argument into a file
•	fprt_float() a function which prints its single, 
floating point argument into a file.

You should use fscanf() to get the values of the variables 
from the input (the file) and fprintf() to print the values 
to the other file. Pay attention to using the correct 
format for each of the data types. 
                                                         


No Answer is Posted For this Question

Be the First to Post Answer

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
Struct(s) { int a; long b; } Union (u) {int a; long b; } Print sizeof(s)and sizeof(u) if sizeof(int)=4 and sizeof(long)=4 Mascot2
What is the memory allocated by the following definition ? int (*x)(); ADITI2
what is the use of pointers  5
What compilation do? Geometric-Software7
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice) Subex1
pointer_variable=(typecasting datatype*)malloc(sizeof(datatype)); This is the syntax for malloc?Please explain this,how it work with an example? Excel2
write a own function to compare two strings with out using stringcomparition function? LG-Soft3
logic for generating all the combinations of the any number of given letters. ex::::::::: if a,b,c,d are given the o/p should be abcd,dcba,dbac,bcad,................ 4*3*2*1 combinations............ Infosys2
What is external and internal variables What is dynamic memory allocation what is storage classes in C  2
Explain in detail how strset (string handling function works )pls explain it with an example.  1
2.Given the short c program that follows a. make a list of the memory variables in this program b.which lines of code contain operations that change the contents of memory? what are those operations? Void main( void) { Double base; Double height; Double area; Printf(“enter base and height of triangle :”); Scanf(“%lg”, &base); Scanf(“%lg”, &height); Area=base*height/2.0; Printf(“the area of the triangle is %g \n”,area); } Wipro1
I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?  3
How do you write a program which produces its own source code as its output?  2
what are the interview question's in the language c Nipuna1
#define f(x) main() { printf("\n%d",f(2+2)); }  3
2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above Siemens4
write a program to print sum of each row of a 2D array.  2
Can we access RAM? How? Whats the range of access? Similarly What are other hardware we can access?  1
How does free() know how many bytes to free?  5
convert 0.9375 to binary CTS1
 
For more C Interview Questions Click Here 
         
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com