fork download
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3. #include <ctype.h>
  4. #include <stdlib.h>
  5.  
  6. char tern(char* h){
  7. for(; *h!='\0'; h++){
  8. if(*h >= 'a' && *h <= 'z') *h-=32;
  9. }
  10. return 0;
  11. }
  12.  
  13. int main()
  14. {
  15. char Tr[100]="sbuIbsdubsS";
  16. char* fog = &Tr;
  17. tern(fog);
  18. for (int t=0; t<5; t++){
  19. printf("%c", Tr[t]);
  20. }
  21. return 0;
  22. }
Success #stdin #stdout 0s 5524KB
stdin
Standard input is empty
stdout
SBUIB