#include<stdio.h>
void function(void);
void main (void)
{
int number;
printf("call? yes(1) no(-1)");
scanf("%d", &number);
while(number>=0)
{
function();
printf("call? yes (1) no (-1)");
scanf("%d", &number);
}
}
void function(void)
{
static int multiple = 2;
printf("%d", &multiple);
multiple = multiple*2;
}
hi this is my code for finding 2 multiplied by a number . i wanted it to print out 2,4,8,16 etc. however im getting some big number when i run this code. i just started learning c so any comment is appreciated