What is the newline escape sequence?
No Answer is Posted For this Question
Be the First to Post Answer
get any number as input except 1 and the output will be 1.without using operators,expressions,array,structure.don't print 1 in printf statement
using for loop sum 2 number of any 4 digit number in c language
Why string is used in c?
What is meaning of "Void main" in C Language.
24 Answers Ford, GU, HCL, IBIBS, JUW, TCS,
Describe newline escape sequence with a sample program?
What are the advantages of using linked list for tree construction?
code for reverse alternate words from astring
how can we print hellow world programme without using semicolon
Can a variable be both constant and volatile?
why we need function pointers?
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,
Differentiate between a for loop and a while loop? What are it uses?