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 (2248)
 C++ interview questions  C++ Interview Questions (1106)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (644)
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 :: Juhi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
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
 
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know. TCS 7
i=10,j=20 j=i,j?(i,j)?i:j:j print i,j CSC 1
ABCDCBA ABC CBA AB BA A A TCS 4
Add 2 64 bit numbers on a 32 bit machine NetApp 3
1.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array? Qualcomm 3
Write a program to accept a character & display its corrosponding ASCII value & vice versa?   7
Write c-code for 5+55+555+5555+55555+555555+5555555. Output will be it's answer...   4
what are the stoge class in C and tel the scope and life time of it? Tech-Mahindra 2
Efficient data structure for store/search list of 1000 records a)array b)double linked list c)circular queue d)hash table Value-Labs 2
Is main() function predfined or userdefined?   11
Here is alphabets : abcdefgh 1) how to reverse. as hgfedcba 2) after reversal, how to group them in a pair hg fe dc ba.   2
int a=1,b=2,c=3; printf("%d,%d",a,b,c); What is the output? Verifone 14
 
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