Posts by iojoaomarcos • 43 points
2 posts
-
2
votes1
answer2607
viewsQ: How to remove duplicate elements from a C list?
I have a contact list and need to be removed duplicates, I was trying to solve using the code below: Elemento* remove_duplicados(Elemento* agenda) { Elemento* a = NULL; //POnteiro do Elemento…
-
2
votes2
answers772
viewsQ: How to use a dynamically allocated vector returned from a function in C?
I have a dynamic size vector that was created in a function and need to return it to the main function. The function that returns is the following: int* uniao(int *v1, int n1, int *v2, int n2){ int…
casked iojoaomarcos 43