In this exercise it is necessary to change only the characters a through b, ie printf output should be like this {B, 1.5, 2.7} {A, 3.9, 4.2}
typedef struct{char n;float x;float y;}Ponto;
void troca_nomes(Ponto *a, Ponto *b){
char aux;
aux = *a.n;
*a.n = *b.n;
*b.n = aux;
}
int main(void){
Ponto a = {'A', 1.5, 2.7};
Ponto b = {'B', 3.9, 4.2};
troca_nomes(&a,&b);
printf("{%c,%.1f,%.1f}\n",a.n,a.x,a.y);
printf("{%c,%.1f,%.1f}\n",b.n,b.x,b.y);
}