Posts by TiagoDM • 31 points
2 posts
-
2
votes0
answers53
viewsQ: What makes this C program unusable when compiled in different versions of GCC or Clang?
This C language program is compiled in all versions of GCC without any error message, but specifically in GCC 6.3 and 8.3, the executable produces totally inconsistent results. In GCC 8.1 and 10.2…
-
0
votes1
answer36
viewsQ: How to return a pointer to a dynamically allocated String, declared within a function?
//Função de inversão de String. #include <stdio.h> #include <stdlib.h> #include <string.h> #define SIZE 30 char* invertStr(char *source) { int size = strlen(source); char *inverted…