diff bw array and pointer

PHOTO EMBED

Mon Sep 16 2024 15:17:50 GMT+0000 (Coordinated Universal Time)

Saved by @E23CSEU1151

#include <iostream>
using namespace std;

int main() {
  int arr[10] = {23 , 122 , 41, 67};

  int n[10];
   cout << sizeof(n) << endl;
   
   int *p = &n[5];
    cout << sizeof(*p) << endl;
    cout << sizeof(p) << endl;
     cout << sizeof(&p) << endl;
  
  

  
  
    return 0;
}
content_copyCOPY