18 lines
354 B
C
18 lines
354 B
C
|
/* Adresses et variables */
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main() {
|
||
|
char variable = 'A';
|
||
|
|
||
|
printf("Informations sur ma variable :\n");
|
||
|
printf(" type : char\n");
|
||
|
printf(" taille : %lu octet\n", sizeof(variable));
|
||
|
printf(" contenu : %c\n", variable);
|
||
|
printf(" adresse : %p\n", &variable);
|
||
|
|
||
|
|
||
|
return 0;
|
||
|
}
|