Which header file is essential for using strcmp function?
No Answer is Posted For this Question
Be the First to Post Answer
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,
What is a stream in c programming?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
Explain what are header files and explain what are its uses in c programming?
What are the disadvantages of c language?
what is c
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
what is different between auto and local static? why should we use local static?
please give me some tips for the selection in TCS.
2. What does static variable mean?
What is the importance of c in your views?
can any one provide me the notes of data structure for ignou cs-62 paper