Difference between malloc() and calloc() function?
No Answer is Posted For this Question
Be the First to Post Answer
I have an array of 100 elements. Each element contains some text. i want to: append a star character to the end of every fifth element remove every second character from every tenth element, and… add a line feed (ascii 10) after the 30th character of every array element whose length is greater than 30 characters.
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 the output of below code int x=8,y; x>>=2; y=x; what is y value. NOTE:EXPLANATION IS COMPALSARY with binary bits
Is array a primitive data type in c?
Tell me when would you use a pointer to a function?
What is static function in c?
How to write c functions that modify head pointer of a linked list?
Write code for atoi(x) where x is hexadecimal string.
6. Which of the Following is not defined in string.h? A)strspn() B)strerror() C)memchr() D)strod()
What are the uses of pre-processor directives?
C,c++, Java is all are structural oriented or procedure oriented language..?
What’s a signal? Explain what do I use signals for?