C Programming·Practice drills 9

Drill 23: Summarise — Variables and operators

Summarise the example in one sentence.

Beginner 5 min read Lesson 231 of 300 Challenge included
What you will be able to do
  • Summarise the example in one sentence.

Practice task

Summarise the example in one sentence.

operators.cC
#include <stdio.h>
#include <limits.h>

int main(void) {
    int count = 7;
    double price = 19.99;
    char grade = 'A';

    printf("count = %d\n", count);
    printf("price = %.2f\n", price);
    printf("grade = %c\n", grade);

    printf("7 / 2 = %d\n", 7 / 2);
    printf("7 %% 2 = %d\n", 7 % 2);

    unsigned int big = UINT_MAX;
    printf("UINT_MAX = %u\n", big);
    printf("UINT_MAX + 1 = %u\n", big + 1);

    return 0;
}
Your turn

Write your answer

Easy

Summarise the example in one sentence.

TEXT · starter
Your answer…
Study tools

Make it yours.

Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.

Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign in
Finished reading?

Lock in what you just learned.

Mark this lesson complete to save your place and move one step closer to the certificate.

Lesson 231 of 300 · 0% of course