answersLogoWhite

0

What else can I help you with?

Related Questions

Why do you need a terminating null character at the end of the every string in C programming?

Because the null character represents the end of the string.


Program to find the occurrences of a given character in a string in c plus plus?

#include#includesize_t count_char (const std::string& s, const char c){size_t count = 0;size_t offset = 0;while ((offset = s.find(c, offset)) != s.npos){++count;++offset;}return count;}int main(){std::string str {"Hello world!"};std::cout


What symbol or character determines end of string?

In C programming language, a string is an array of characters which is always terminated by a NULL character: '\0'


If i whirl a tin can on the end of a string and the string suddenly breaks the tin can will?

If you whirl a tin can on the end of a string and the string suddenly breaks, the tin can will continue to move in a straight line tangentially to its circular path at the moment the string breaks. This occurs due to inertia, as the can will maintain its velocity and direction until acted upon by an external force, such as gravity or air resistance.


Write a program that accepts two stringsThe program should determine whether the first string occurs at the end of the second string?

In C, there will be a part like this:char s1[] = "END";char s2[] = "REVEREND";size_t l1, l2;l1= strlen (s1);l2 = strlen (s2);if (l1>=l2 && strcmp (s1, s2+(l2-l1))==0) puts ("Yeah");


Why do you need a null terminating string at the end of each string?

to indicate end of string


What is the difference between a C plus plus string and a C-style string?

A std::string is an object that encapsulates an array of type char whereas a C-style string is a primitive array with no members. A std::string is guaranteed to be null-terminated but a C-style string is not.


What is the c string in voilin?

There is no C string on a violin- the strings are G, D, A and E. Perhaps you are thinking of a viola, which has a low C string, alongwith a G, D and an A string.


C plus plus library functions for string operations?

You can use "string" class in C++ for string operations or you may use c style string functions as well. #include <string> String class in C++ provides all basic function to operate on strings. you may details descriptin at http://www.cplusplus.com/reference/string/string/


Is there a c-string thong for men?

yes, c-string is available for men..


What are strings?

Some stringed instruments contain a C-string, producing sound from the string creates the note C, so it is called C-string.


How do you get the circumference of a cylinder with a string?

Wrap the string around the cylinder, mark where the end of the string touched itself, remove the string, and measure from the end of the string to the mark.