![]() ![]() | intro/first-types.c - Illustration af konkrete typer i et C program. | Lektion 2 - slide 7 : 24 Program 1 |
#include <stdio.h> int main(void) { int i = 10; short int j = 5; long int k = 111L; double x = 10.5; float y = 5.5F; long double z = 111.75L; char c = 'C'; char d = 'a'; char *s = "Computer", *t = "C"; printf("i = %d", i); return 0; }