what is difference between array of characters and string
Answer Posted / satyaki paul
In an array,the characters are loosely bound while in a
String ,the characters are comparatively tightly bound
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
code for quick sort?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
What are header files and what are its uses in C programming?
What is double pointer?
How to define structures? ·
How pointers are declared?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
Explain what is dynamic data structure?
What are dangling pointers in c?
What type of function is main ()?
Explain data types & how many data types supported by c?
Which is more efficient, a switch statement or an if else chain?
What is the explanation for the dangling pointer in c?
write a c program for swapping two strings using pointer