fork download
  1. #include <stdio.h>
  2. int main() {
  3. int myNum = 9;
  4. char myString[] = "Hello";
  5.  
  6. printf("Address of myNum: %p\n", &myNum); //Address of myNum: 0x7ffc615ac4ec
  7. printf("Address of myString: %p\n", &myString); //Address of myString: 0x7ffc615ac4f2
  8.  
  9. return 0;
  10. }
Success #stdin #stdout 0.03s 25776KB
stdin
Standard input is empty
stdout
#include <stdio.h> 
int main() {
   int myNum = 9; 
   char myString[] = "Hello";

   printf("Address of myNum: %p\n", &myNum); //Address of myNum: 0x7ffc615ac4ec 
   printf("Address of myString: %p\n", &myString); //Address of myString: 0x7ffc615ac4f2

   return 0; 
}