Skip to content

Instantly share code, notes, and snippets.

@C47D
Created March 30, 2017 18:10
Show Gist options
  • Save C47D/b3e3b74d846f020c206964449ba83c10 to your computer and use it in GitHub Desktop.
Save C47D/b3e3b74d846f020c206964449ba83c10 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdint.h>
int main()
{
const uint8_t arreglo[10] = {0,1,2,3,4,5,6,7,8,9};
uint8_t i;
for(i = sizeof(arreglo); i != 0; i--){
printf("Pos: %d, Contenido: %d\r\n", sizeof(arreglo) - i, arreglo[sizeof(arreglo) - i]);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment