Fundamentals15 / 16
Up next

auto type inference

#include <stdio.h>

int main(void) {
    auto count = 42;
    auto ratio = 3.5;
    printf("%d %.1f\n", count, ratio);
    return 0;
}
What you're solving

C23 infers the type from the initializer