Search:

Type: Posts; User: karthigan

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,737

    Understood, thank you! I appreciate the detailed...

    Understood, thank you! I appreciate the detailed explanation again. I found the mistake in my code, fixed it, and my result now aligns with yours.
  2. Replies
    6
    Views
    1,737

    Thank you for the detailed explanation! I used %p...

    Thank you for the detailed explanation! I used %p to print the pointer. And in this case, it is indeed continuous allocation - see output below:

    Base Address of names : 0x561e9e1737d8
    Base...
  3. Replies
    6
    Views
    1,737

    Memory Layout of character pointers

    Hi,

    I am trying to understand memory layout of pointers. Please see my source below:

    Program Source:




    #include <stdio.h>
Results 1 to 3 of 3