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 is the term used for a string that appears in the actual code of a program?

string-literal


What term is 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.


Prpogram in c to check the string is palindrom or not?

Here is a simple C program to check if a string is a palindrome: #include &lt;stdio.h&gt; #include &lt;string.h&gt; int main() { char str[100], rev[100]; printf(&quot;Enter a string: &quot;); fgets(str, sizeof(str), stdin); str[strcspn(str, &quot;\n&quot;)] = 0; // Remove newline character strcpy(rev, str); strrev(rev); // Reverse the string if (strcmp(str, rev) == 0) printf(&quot;The string is a palindrome.\n&quot;); else printf(&quot;The string is not a palindrome.\n&quot;); return 0; } This program takes a string input, reverses it, and then compares the original string with the reversed string to determine if it is a palindrome.


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.