#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define Nome "nome"
#define TAM_STRING 12
int main(void) {
char * str
= malloc(TAM_STRING
);
if(str == NULL) {
printf("Não já espaço para alocar"); } else {
for(int i
= 0; i
< strlen(Nome
); i
++) { printf("\nCaracter[%d] = [%c]\n", i
, *(str
+i
)); if(((*(str
+i
) == 'a')|| (*(str
+i
) == 'e')) || (*(str
+i
) == 'i') || (*(str
+i
)== 'o') || (*(str
+i
) == 'u')) printf("Vogal"); }
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KI2luY2x1ZGUgPHN0ZGxpYi5oPgoKI2RlZmluZSBOb21lICJub21lIgojZGVmaW5lIFRBTV9TVFJJTkcgMTIKCmludCBtYWluKHZvaWQpIHsKCWNoYXIgKiBzdHIgPSBtYWxsb2MoVEFNX1NUUklORyk7CgoJaWYoc3RyID09IE5VTEwpCXsKCQlwcmludGYoIk7Do28gasOhIGVzcGHDp28gcGFyYSBhbG9jYXIiKTsKCX0gZWxzZSB7IAoJCXN0cmNweShzdHIsIE5vbWUpOwoJCXByaW50ZigiTm9tZT1bJXNdIHRlbSBbJWRdIGNhcmFjdGVycyIsc3RyLCBzdHJsZW4oTm9tZSkpOwoJCWZvcihpbnQgaSA9IDA7IGkgPCBzdHJsZW4oTm9tZSk7IGkrKykgewoJCQlwcmludGYoIlxuQ2FyYWN0ZXJbJWRdID0gWyVjXVxuIiwgaSAsICooc3RyK2kpKTsKCQkJaWYoKCgqKHN0citpKSA9PSAnYScpfHwgKCooc3RyK2kpID09ICdlJykpIHx8ICgqKHN0citpKSA9PSAnaScpIHx8ICgqKHN0citpICk9PSAnbycpIHx8ICgqKHN0citpKSA9PSAndScpKSBwcmludGYoIlZvZ2FsIik7CgkJfQoJCWZyZWUoc3RyKTsKCX0KfQ==