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

Enter, calculate and display the size of a variable in memory

This commit is contained in:
Franck ALBARET 2018-10-19 12:38:55 +00:00
parent 051a21c0b1
commit 8189d48c58

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;
}