I remember briefly touching C in school about 4 years ago, and hearing that C cannot print strings directly, but rather only as an array of characters. Is that true? How do I get the following code to work then:
Code:#include <stdio.h> #include <stdlib.h> //SamsVariables.c int main(){ int windSpeed = 301; printf("The fastest tornado wind speed ever recorded was %d mph.\n",windSpeed); int windSpeed2 = 215; str hurricaneName = "Hurricane Patricia"; printf("The hurricane with the highest ever wind speeds was %s, with wind speeds of %d mph.\n",hurricaneName,windSpeed2); }