esse agora q você mandou funcionou 100%, foi só adcionar a biblioteca #include <math.h> e uma {. Valeu mesmo beradero #include "stdafx.h" #include <math.h> #include <stdlib.h> void func_imc(float *peso,float *altura, float *imc, int qtd) { float pes, alt,imc1; for (int i=0; i<qtd; i++) { printf("Informe o %d-esimo peso: ",i+1); scanf("%f",&pes); printf("Informe a %d-esima altura: ",i+1); scanf("%f",&alt); imc1 = pes / (alt * alt); imc = imc1; altura = alt; peso = pes; } } int _tmain(int argc, _TCHAR* argv[]) { float *peso,*altura, *imc; int qtd=0; printf("Será feito o cadastro de quantas pessoas? \n"); scanf("%d",&qtd); peso=(float*)malloc(qtd*sizeof(float)); altura=(float*)malloc(qtd*sizeof(float)); imc=(float*)malloc(qtd*sizeof(float)); func_imc(peso, altura, imc , qtd); int i; for (int i=0; i<qtd; i++) { printf("O %d-esimo peso é:%.2f\n e a altura é:%.2f\n e seu IMC é:%.2f\n \n",i+1, peso, altura,imc); } return 0; }