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...

A distributed transaction consists of subtransactions that execute at different sites and access local DBMSs at those sites. For example, a distributed transaction that transfers money from a bank account at site A to a bank account at site B executes a subtransaction at A that does the withdrawal and then a subtransaction at B that does the deposit.

Such a distributed transaction must satisfy the ACID properties in a global sense: it must be globally atomic, isolated, consistent, and durable. The issue is, if the subtransactions at each site individually satisfy the ACID properties, does the distributed transaction necessarily satisfy the ACID properties? Certainly if the subtransactions at each site are individually durable, the distributed transaction is durable. Give examples of situations in which a. The subtransactions at each site are atomic, but the distributed transaction is not atomic. b. The subtransactions at each site are consistent, but the distributed transaction is not consistent. c. The subtransactions at each site are isolated, but the distributed transaction is not isolated.

Computer Science & Information Technology

What is the point of an inspection review?

What will be an ideal response?

Computer Science & Information Technology

Active Directory groups machines into administrative units called ____.

A. domains B. sites C. networks D. nodes

Computer Science & Information Technology

Which of the following is not an example of application software?.

A. word processor B. computer-aided design system C. spread sheet D. general ledger system E. security monitor

Computer Science & Information Technology