Posts by Bruno Santos • 21 points
3 posts
-
1
votes1
answer44
viewsQ: Error in data printing
input example: rmtpuzcafhnyxdesivlkbwgjqo 2 roahp uhchch exit : veras batata Code: #include <stdio.h> #include <ctype.h> #include <string.h> int main() { char palavra[ 1000 ]; char…
casked Bruno Santos 21 -
1
votes0
answers36
viewsQ: I need to relocate my vector to every new entry, any ideas?
Implement a program that requests a sequence of values to be stored in a dynamically allocated vector and reallocated to each new entry. #include <stdio.h> #include <stdlib.h> int main…
casked Bruno Santos 21 -
-2
votes1
answer40
viewsQ: Recursive binary search, but this error appears:"expected Primary-Expression before 'int'"
#include <stdio.h> #include <stdlib.h> //Funcao para busca binaria com recursividade int BuscaBinariaR(int vetor[10], int inicio,int fim, int x) { int meio = (inicio+fim)/2;…