what is the different between data structure and data type?
Answer / shalini
data structure is the way of organising and storing the
data, where as data type is the one that defines the
required data for the program requirement.
ex: integer, char,float
| Is This Answer Correct ? | 11 Yes | 1 No |
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.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. 3.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(i.e.,the original ASCII equivalent plus the random integer)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. 4.Dislay 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 decodingas was used in encoding.
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it?
Are pointers integers in c?
Given a string write a program to print all alphabetical characters in the order of their occurance first,followed by the sum of the numeric characters then followed by the special characters in the order of their occurance.
1 Answers College School Exams Tests, Wipro,
What is structure packing ?
What is the difference between char a[] = "string"; and char *p = "string"; ?
14 Answers Adobe, Honeywell, TCS,
Why cant I open a file by its explicit path?
What is openmp in c?
can we execute the program with the object file
Without using main fn and semicolon,print remainder for a given number in C language
How to add two numbers with using function?