Posts by Paulo Maciel • 3 points
1 post
-
-1
votes1
answer193
viewsQ: The function should calculate the size of a string, passing a string as a parameter
#include<stdio.h> #include<string.h> /*Função que verifica tamanho da string*/ int conta_str(char x){ int i, tamanho = 0; char str[40]; do{ gets(str); for(i = 0, tamanho = 0 ; i < 30…
casked Paulo Maciel 3