|
Question |
Rating |
View Answer |
|
What is the difference between strings and character arrays ? |
|
View Answer |
|
how to define a class "String" that could work as a user defined string type.Include constructors that will enable us to create an uninitialized string String s1;// string with length 0 and also to initialize an object with a string constant at the time of creation like String s2("Well done!"); Include a function that adds two strings to make a third string.Note that the statement s2=s1; will be perfectly reasonable expression to copy one string to another. Write a complete program to test your class to see that it does the following tasks: (1)Creates uninitialized string objects. (2)Creates objects with string constants. (3)Concatenates two strings properly. (4)Displays a desired string object.
|
|
View Answer |
|
i need a code in c for strings and general, which are important and frequently asked in programming test especially for SUBEX. |
|
View Answer |
|
Can we use string in switch statement?
|
|
View Answer |
|
How can I convert a number to a string?
|
|
View Answer |
|
Write a program which accepts a filename as a command line argument and coverts all characters in the file to uppercase.
|
|
View Answer |
|
How would you implement a sbstr()function that extract a sub string from a givn string? |
|
View Answer |
|
Following declarations are different from one another const char *const s; char const *const s;
|
|
View Answer |
|
How to type a string without using printf function?
|
|
View Answer |
|
How do I use c-strings to write a c program that Removes multiple spaces between words in a paragraph? |
|
View Answer |
|
How can I convert a number to a string ? |
|
View Answer |
|
How can I convert a string to a number ? |
|
View Answer |