Tuesday, June 11, 2019

finding the address of variables in c

#include <stdio.h>

int main () {

   int  var1;
   char var2[10];

   printf("Address of var1 variable: %x\n", &var1  );
   printf("Address of var2 variable: %x\n", &var2  );

   return 0;
}


output:::


No comments:

Post a Comment

python class topic video