POINTERS IN C LANGUAGE

 #include <stdio.h>

using namespace std;


   int main()

{  int a;

   printf(" Enter the value of a \n");

   scanf("%d",&a);

   int*b = &a;

   printf("The value of a is %d\n",a);

   printf("The value of a is %d\n",*b);

   printf("The address of a is %u\n",&a);

   printf("The address of a is %u", b);

   }


Comments

Popular posts from this blog

250+ C Programs for Practice

FUNCTION OVERRIDING IN CPP