Posts by filipe • 3 points
3 posts
- 
		0 votes2 answers38 viewsA: Program with Warning and does not perform what was requested1º - You want to pass an array to a function by reference so use this: int *vet, cont, idade, pessoas, instrucao; printf ("Digite a quantidade de pessoas\n"); scanf ("%d", &pessoas); inicializa… 
- 
		0 votes0 answers77 viewsQ: Error: Segmentation fault - Dynamic matrix allocationI intend to use this function to dynamically allocate and populate an array, of indeterminate element size, where each row has only two elements, that is, an ordered pair. int **lePares() { int… 
- 
		0 votes1 answer51 viewsQ: Segmentation FaultI would like to dynamically allocate memory without informing the amount of elements that a vector would have. #include <stdio.h> #include <stdlib.h> int cardinalidade(char *conjunto) {…