#include #include /**** ** Exercise 1: What happens below ** char str[] = "CS220"; ** ** Exercise 2: What happens below? Whats wrong? ** char str[] = {'C', 'S', '2', '2', '0'}; ** ** Exercise 3: Now move sPtr and check what sPtr points to ** sPtr = ??????? ** ** Exercise 4: What happens if you declare sPtr as ** char *sPtr = "CS220" ** ****/ int main(int argc, char* argv[]){ char str[10] = "CS220"; char *sPtr; sPtr = str; printf("str =%s\n", str); printf("sPtr=%s\n", sPtr); // TODO: Move sPtr and check what sPtr points to // sPtr = ??????? printf("After moving sPtr\n", str); printf("=================\n", str); printf("str =%s\n", str); printf("sPtr=%s\n", sPtr); }