1
0
Fork 0
mirror of https://codeberg.org/DansLeRuSH/c-plus-plus-exercises.git synced 2024-11-24 04:08:08 +00:00

Program for entering, calculating and displaying the size of a variable in memory

This commit is contained in:
Franck ALBARET 2018-10-19 12:37:04 +00:00
parent 1aa39ee49a
commit 0347383e48

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