Write an interactive c program that will encode or decode a line of text. To encode a line of text, proceed as follows: Convert each character, including blank spaces, to its ASCII equivalent. Generate a positive random integer. Add this integer to the ASCII equivalent of each character. The same random integer will be used for the entire line of text. Suppose that N1 represents the lowest permissible value in the ASCII code, and N2 represents the highest permissible value. If the number obtained in step 2 above exceeds N2, then subtract the largest possible multiple of N2 from this number, and add the remainder to N1. Hence the encoded number will always fall between N1 and N2, and will therefore always represent some ASCII character. Display the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text. Be certain, however, that the same random number is used in decoding as was used in encoding.
1 11735if the address of a[1,1] and a[2,1] are 1000 and 1010 respectively and each occupies 2 bytes then the array has been stored in what order?
4 24180What is the output of following program ? int main() { int x = 5; printf("%d %d %d\n", x, x << 2, x >> 2); }
5 20940write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
1 14935Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
702Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
640Post New Amazon C Interview Questions
What is tuple? How to create a tuple in swift?
How the programmer of a class should decide whether to declare member function or a friend function?
What have been your failures and what have you learned from them?
We are working as Merchant Exporter. My Question is can we Sale the products against 'H' Form to the Exporter after purchasing the material against 'C' Form? Or only Manufacturer can make sale against 'H' Form.
Explain the difference between a simulator and emulator.
How to retrieve user name in case of Window Authentication?
How you can write a custom component and use it inside your app?
What is mvp in ios?
What are topic tags?
What is range() in python? Give an example to explain it.
how the qualification of pharma can help in banking
Explain Robot?s command line options?
Can you use order by when defining a view?
Explain the important features of vc++?
Can any body help me out by telling hoe swelling pressure test of soil is carried out ? some body told me the procedure & formula (change in length /116.3*100%) but still i am confused ? pls help.