What does the c preprocessor do?
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between near, far and huge pointers?
When is the “void” keyword used in a function?
Explain output of printf("Hello World"-'A'+'B'); ?
Difference between data structure and data base.
7 Answers CTS, Value Labs, Zoho,
biggest of two no's with out using if condition statement
Does c have an equivalent to pascals with statement?
who is the editor of 'pokemon'?
Compare and contrast compilers from interpreters.
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 Answers Amazon, CSJM, HCL, Microsoft, TCS, Wipro,
1 What is a Data Structure?
a=(1,2,3); b=1,2,3; c=1,(2,3); d=(1,2),3; what's the value of 'a','b','c','d'
the question is that what you have been doing all these periods (one year gap)