Posts by MSX • 78 points
4 posts
-
1
votes1
answer199
viewsA: Vectors, pointers and memory storage
From what I understand it’s this. #include <stdio.h> #include <stdlib.h> int main () { int n, i; float *v; // Declaração do vetor scanf ("%d", &n); v = malloc (n * sizeof (float));…
-
1
votes1
answer64
views -
0
votes2
answers295
viewsA: Problem with malloc
I’ve been analyzing your code and your logic seems right, but I noticed some problems, the vector v is resized in the function verPal, but it is not returned to main. So Voce tries unsuccessfully to…
-
4
votes4
answers3096
viewsQ: recursive superfatorial problem
I have a doubt in the realization of this recursive function of mathematics. Calculation of the superfatorial: The superfactor of a number N is defined by the product of the first factorial N of N.…