#include <stdio.h>
void ImprimeMenu(char *menuOpc[], size_t length) {
for (int i
= 0; i
< length
; i
++) printf("%i - %s\n", i
+ 1, menuOpc
[i
]); }
int main(void) {
char *opcSalgados[] = { "Pastel", "Mini pizza", "Coxinha", "Pao de queijo", "Pao de frango com queijo", "Pao de carne" };
ImprimeMenu(opcSalgados, sizeof(opcSalgados) / sizeof(opcSalgados[0]));
}
//https://pt.stackoverflow.com/q/262990/101
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIEltcHJpbWVNZW51KGNoYXIgKm1lbnVPcGNbXSwgc2l6ZV90IGxlbmd0aCkgewogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBsZW5ndGg7IGkrKykgcHJpbnRmKCIlaSAtICVzXG4iLCBpICsgMSwgbWVudU9wY1tpXSk7Cn0KCmludCBtYWluKHZvaWQpIHsKCWNoYXIgKm9wY1NhbGdhZG9zW10gPSB7ICJQYXN0ZWwiLCAiTWluaSBwaXp6YSIsICJDb3hpbmhhIiwgIlBhbyBkZSBxdWVpam8iLCAiUGFvIGRlIGZyYW5nbyBjb20gcXVlaWpvIiwgIlBhbyBkZSBjYXJuZSIgfTsKICAgIEltcHJpbWVNZW51KG9wY1NhbGdhZG9zLCBzaXplb2Yob3BjU2FsZ2Fkb3MpIC8gc2l6ZW9mKG9wY1NhbGdhZG9zWzBdKSk7Cn0KCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzI2Mjk5MC8xMDE=