Posts by Ricardo Farias • 11 points
3 posts
-
0
votes1
answer65
viewsQ: How to pass a char vector * (*) to a function?
Guys, I have this code: #include <stdio.h> void exibir_nomes (char *nome) { for (int i=0; i<5; i++) printf("Nome[%d] = %s\n", i, *nome); } int main () { char…
-
-1
votes1
answer94
viewsQ: How do I know if my threads are actually running at the same time?
The doubt arose in a college job where we need to make use of threads in c. We have been asked to study the "libpthread" so we can get on with the job. The material I’m finding in my research does…
-
-1
votes2
answers109
viewsQ: What does the computer do with 2 distinct values that need to be returned and are in the same memory scope?
I have this code with this single function, it performs the product between 'a' and 'b' that it receives from the "main" function. I would like to know how the function contained in this code deals…