1
0
Fork 0
mirror of https://codeberg.org/DansLeRuSH/c-plus-plus-exercises.git synced 2024-12-30 15:39:06 +00:00

Display the size in memory of a variable

This commit is contained in:
Franck ALBARET 2018-10-19 12:40:02 +00:00
parent 8456db70af
commit d42e6068ed

View file

@ -0,0 +1,11 @@
// Auteur : Franck ALBARET
#include <stdio.h>
int main (void)
{
int V;
puts ("Entrer une variable :");
scanf ("%i",&V);
printf("La taille mémoire de la variable est de %i octet(s)\n",sizeof V);
return 0;
}