C LANGUAGE - 3: VARIABLES
IN THIS TUTORIAL, YOU WILL LEARN ABOUT VARIABLES IN C:
#include<stdio.h>
#include<stdlib.h>
int main()
{
char characterName[] = "Shayan";
int characterAge = 16;
printf("There was once a man lived %s\n", characterName);
printf("He was %d years old.\n", characterAge);
characterAge = 15;
printf("He really liked the name %s.\n", characterName);
printf("but did not like being %d\n", characterAge);
return 0;
}
Comments
Post a Comment