The assignment wants me to print the value and the address of a and b, i dont know why I am having so much trouble with this it seems simple, i just need some direction.
Code:#include <stdio.h>
void print_info(int a, int *b);
int
main(void)
{
int x;
printf("Enter a value for x: ");
scanf("%d", &x);
print_info(x, &x);
return 0;
}
void
print_info(int a, int *b)
{
printf("%d", a);
printf("%p", &a);
printf("%d", *b);
printf("%p", b);
}