c++ short answer question Show transcribed image text 3. 10) Strings are special types of arrays of

c++ short answer question Show transcribed image text 3. 10) Strings are special types of arrays of characters. For an array of characters to be called a string, the array must end in the zero or NULL character ?0?. An array of characters may be initialized as a string conveniently as illustrated by char *pch = This is a string of characters; If you count the characters in the above string constant or string literal, you will find there are 29 characters. Since a terminating zero character is automatically added to the string, the array pch[] must have a dimension of 30. The first element of the array is pch[0]. Print out the first element and the 29th element of the pch[] array What did you get? Use the following code to test the 30th element of pch[] if( pch[30] == ?0? ) {cout <>< last="" element="" of="" string="" is="" zero="" character=""><>< end1;}="" was="" the="" string="" automatically="" terminated="" with="" the="" zero="" character?="">

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer