I am trying to return the size of the array , but it is giving error. What to do?
#include <stdio.h>
char *palavra[] = {"casa", "carro"};
int main(){
int i;
for(i = 0;i < sizeof(palavra);i++){ //Segmentation fault aqui....
asked by
19.01.2017 / 16:02