ALLInterview.com :: Home Page            
 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                      
Google
   
 
Categories >> Software >> Programming Languages >> C
 
 


 

 
 C interview questions  C Interview Questions (2253)
 C++ interview questions  C++ Interview Questions (1111)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (646)
Question
Write a C Program to display the following menu:
Menu
1. Display
2. Copy
3. Append
4. Exit
Accept the choice (1-4) from the user, and perform the 
following tasks:
Choice 1: Accept a file name from the user and display the 
file on screen
Choice 2: Accept two file names, and copy first file to the 
second
Choice 3: Accept two file names, and append second file to 
the first file
Choice 4: Terminate the program
 Question Submitted By :: C
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
Using command line opereators we can do this 
Is This Answer Correct ?    10 Yes 11 No
Kiran
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
wat is the meaning of c? CTS 9
write a program whose output will be- 1 12 123 1234   6
what is the difference between char * const and const char *? TCS 2
Program to find largest of three numbers without using comparsion operator?   3
Is main() is used in the program,,see below example? void main() { int i; for(i=0;i<10;i++) main(); } Then what is the output of the program?   6
how to copy a string without using c function   5
write a program to swap Two numbers without using temp variable. HP 75
where do we use structure pointer?   1
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+.... Ignou 2
write a c programme for add of two numbers with out use of arthematic operators   2
c pgm count no of lines , blanks, tabs in a para(File concept)   2
Find errors (1) m = ++a*5; (2) a = b ++ -c*2; (3)y = sqrt (1000);   5
 
For more C Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com