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



Write a C Program to display the following menu: Menu 1. Display 2. Copy 3. Append 4. Exit Acc..

Answer / kiran

Using command line opereators we can do this

Is This Answer Correct ?    15 Yes 14 No

Post New Answer

More C Interview Questions

what are non standard function in c

0 Answers  


WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c file management?

28 Answers   3D PLM, Code Studio, Deltech, IBM,


Which is better between malloc and calloc?

0 Answers  


biggest of two no's with out using if condition statement

5 Answers  


how can i get the string which is having two spaces at the end.suppose the string is "Hello World ".Now at the end i have two spaces.i need to print with that spaces .

1 Answers  






write the function int countchtr(char string[],int ch);which returns the number of timesthe character ch appears in the string. for example the call countchtr("she lives in Newyork",'e') would return 3.

6 Answers  


Write a main() program that calls this function at least 10 times. Try implementing this function in two different ways. First, use an external variable to store the count. Second, use a local variable. Which is more appropriate?

2 Answers  


main() { printf(5+"Vidyarthi Computers"); }

6 Answers  


What is .obj file in c?

0 Answers  


2. Write a function called hms_to_secs() that takes three int values—for hours, minutes, and seconds—as arguments, and returns the equivalent time in seconds.. Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes, and seconds from the user (format 12:59:59), calling the function, and displaying the value of seconds it returns.

5 Answers   TCS,


why 'c' is called middle level language.

2 Answers  


why effort estimation is important?

1 Answers  


Categories