#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
void caracterBR (){
unsigned int CPAGE_UTF8 = 65001;
unsigned int CPAGE_DEFAULT = GetConsoleOutputCP();
SetConsoleOutputCP(CPAGE_UTF8);}
void padraoCaracter(){
unsigned int CPAGE_UTF8 = 65001;
unsigned int CPAGE_DEFAULT = GetConsoleOutputCP();
SetConsoleOutputCP(CPAGE_DEFAULT);}
void soma(int* a, int* b, int* num){
(*num) = (*a) + (*b);
printf("%d + %d = %d \n", *a, *b, *num);
}
int main(void) {
caracterBR();
int a = 40;
int b = 50;
int num;
soma(&a, &b, &num);
padraoCaracter();
}