Variables
Lesson 6Author : GOUP
Last Updated : September, 2020
printf("There once was a man named %s", characterName); printf("He was %d years old", characterAge); printf("He really liked the name %s", characterName); printf("But didn't like being %d", characterAge);
printf("There once was a man named %s", characterName); printf("He was %d years old", characterAge);
characterAge = 80;
printf("He really liked the name %s", characterName); printf("But didn't like being %d", characterAge);
Names are case-sensitive and may begin with: letters, _ After, may include letters, numbers, _ Convention says Start with a lowercase word, then additional words are capitalized ex. myFirstVariable