in separate statements: 1- Declare a variable to keep a grade and another one to keep the name of the course. Be sure to come up with proper identifiers/names and type for these variables. 2- Initialize the variables (it is ok to hard code). Write one statement that prints the values of both of these variables.
Here you go:
1) Declaring variables with proper names and types:
char grade;
char* course;
2) Initializing and printing variables:
grade='A';
course="machine learning";
printf("Grade: %c\nCourse: %s\n",grade, course);
Check the image below for code structure and output:
========================================================
A sign of thumbs up would be appreciated.
Get Answers For Free
Most questions answered within 1 hours.