Answer the following questions true (T) or false (F)

1. You can assign a standard string to a C-string variable.

2. It is possible to use a standard string with a string member function as source for the strcpy or strcat functions.

1. False
Explanation: C-strings are low level arrays of char. You cannot assign an array.
2. True
Explanation: This code fragment should clarify this idea:
strcpy(aCstringDestination, stringVariable.c_str( ));
the c_str( )member returns a C-string r-value for this and similar purposes.

Computer Science & Information Technology

You might also like to view...

Often, a ____ between two colors creates a third distinct color.

A. switch B. move C. meld D. gradient

Computer Science & Information Technology

The image in the accompanying figure is an example of a(n) ____________________ graphic.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology