hello, can someone tell me how to use the exp() function
I've tried running this:

#include <stdio.h>
#include <math.h>



main()
{
double ans ;


ans = exp ( (float) 1 ) ;

printf("%d",ans);

the answer it keeps giving me is: -1961601175

it should be: 2.71828...

what am I doing wrong?

thank you