Lecture 19:  Strings

Activity:  Categorizing Grid


Today we learned about strings and the string library functions.  Fill in the grid below with the appropriate code using string library functions.  The column on the left assumes the variables a and b are integers.  The column on the right assumes a and b are strings.  You answers in the right column should be the analogous operations on strings.
 
 
int variables: string variables:
a = b  
a == b  
a = a + b  
a < b  
(double) a