Close
Close

//Write a program to print the address of the pointer to a variable whose value is input from the user.

   Kuldeep Kushwaha

#include<stdio.h>

int main()

{

int a;

int *b;

b=&a;

printf("\nenter number=");

scanf("%d",&a);

printf("%u\n",&*b);

printf("%u",b);

return 0;

}

is this solution right?

please update me


Answers

  •    seoexpertim

    I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day! indianapolis junk removal



Ask Yours
Post Yours
Write your answer