Write a program that will write a sentence using constant character arrays and p
ID: 3632702 • Letter: W
Question
Write a program that will write a sentence using constant character arrays and pointer arithmetic. For this assignment you will use only the following two variable declarations:const char upLetters[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
const char loLetters[] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', ' ', '.', ' '};
The only other statements that should be in your program should be the return statement and calls to the putchar() function. This function accepts one parameter, a character (or the integer value that corresponds to an integer). Use pointer arithmetic with the array names to offset to the character that you would like to print.
Print the sentence “My name is Drew.”, with your name replacing mine.