answersLogoWhite

0

char cyphertext[] = "kpfkc";

char plaintext[sizeof(cyphertext)];

int i;

for (i=0; i<sizeof(cyphertext); i++) plaintext[i] = cyphertext[i] - 2;

Note: This is not portable, and depends on the USASCII character set.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Write a c program using string concept enter a sting and replace the new string in to old string and find no of occurrence?

print c co com comp compu


Java program convert the inputed words into its upper case or lower case form?

There are methods in the String class; toUppercase() and toLowerCase(). i.e. String input = "Hello!"; String upper = input.toUpperCase(); //stores "HELLO!" String lower = input.toLowerCase(); //stores "hello!" -Note: these methods are NOT modifier methods therefore the original string is still "Hello!"


Write a program to implement the various operations on string such as length of string concatenation reverse of a string copy of a string to another in VB?

what is string


C plus plus program to perform string manipulation?

You do not need to program string manipulation as it is already part of the standard library. See std::string and std::wstring.


What term is used for a string that appears in the actual code of a program?

string-literal


What is the term used for a string that appears in the actual code of a program?

string-literal


What is the use of Reverse String in C program?

The use of the reverse string in C program is used to reverse the letters in the string. An example would be reverse me would be reversed to em esrever.


How do you determine if a given string is palindrome or not?

Reverse the string and compare it to the original. If they match, then it is a palindrome.


Write a program in java to display a string message using Servlets?

i dont no string for servlate


Write a java program to count the space from the given line?

.... String line = "This is example program with spaces"; String[] tokens = line.split(" "); System.out.println(tokens.length-1); .......


Why the string p is not being asked in this program?

By mistake.


Write a program convert a string from uppercase to lower case and vice-versa without using string tolower and string toupper commands in TCL?

[ string toupper $str ] or [ string tolower $str ]