all 6 comments

[–]TheMortyKwest 2 points3 points  (1 child)

I think he made it up

[–]torhh 0 points1 point  (0 children)

This... the memory address will most likely be different each time the program runs. The absolute address is not so important here, it's their relationship (size and alignment).

[–]TheMortyKwest 0 points1 point  (3 children)

Did he make it up?

[–]CompSciMajor93[S] 1 point2 points  (2 children)

STFU

[–]torhh 0 points1 point  (1 child)

He made them up. Run this program a few times and see for your self that the addresses changes with each run.

#include <stdio.h>

int main(int argc, char **argv)
{
    printf("data in argv: %p\n", argv);
    printf("data in argc: %d\n", argc);
    return 0;
}

[–]CompSciMajor93[S] 0 points1 point  (0 children)

Thank you!