Posts by Ruben Fontes • 27 points
2 posts
-
0
votes2
answers1247
viewsQ: How to check if one or more string has uppercase/lowercase initial character (C Language)
#include <stdio.h> char leitura(const char *str){ int i, resultado; for(i = 0; str[i] != '\0'; i++){ if(str[0] >= 'A' && str[0] <= 'Z' &&…
casked Ruben Fontes 27 -
1
votes1
answer68
viewsQ: Why am I getting the "0" return regardless of the entered input?
#include <stdio.h> int Comparacao(int x, int y){ int resultado; if(x < y){ resultado = -1; }else{ if(x == y){ resultado = 0; }else{ …