Lecture 7: Palindrome homework discussion and arrays




The Ohio State University show

Summary: In this lecture, we mainly discuss the details and requirements of the Palindrome homework assignment, however, doing so also entailed discussing many details of static arrays in C++. Specifically, static arrays will have two notions of size, i.e., a maximum size (the maximum number of elements an array can hold) and an actual size (the number of valid elements the array currently holds). Lastly, we discuss and develop an algorithm to solve the homework problem.