Sir,please help me out with the code of this question.

Write an interactive C program that will encode or decode
multiple lines of text. Store the encoded text within a
data file, so that it can be retrieved
and decoded at any time. The program should include the
following features:
(a) Enter text from the keyboard, encode the text and store
the encoded text in a data file.
(b) Retrieve the encoded text and display it in its encoded
form.
(c) Retrieve the encoded text, decode it and then display
the decoded text.
(d) End the computation.
Test the program using several lines of text of your choice.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Write a code to generate a series where the next element is the sum of last k terms.

0 Answers   Aspiring Minds,


p*=(++q)++*--p when p=q=1 while(q<=6)

0 Answers   KINPOE,


What is bash c?

0 Answers  


the question is that what you have been doing all these periods (one year gap)

0 Answers   HCL,


Why static is used in c?

0 Answers  


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

0 Answers  


Is main is a keyword in c?

0 Answers  


Explain the difference between exit() and _exit() function?

0 Answers  


How can you read a directory in a C program?

0 Answers  


What are the different flags in C? And how they are useful? And give example for each in different consequences?

1 Answers  


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

0 Answers  


Find the O/p of the following struct node { char *name; int num; }; int main() { struct node s1={"Harry",1331}; struct node s2=s1; if(s1==s2) printf("Same"); else printf("Diff"); }

1 Answers  


Categories