Search:

Type: Posts; User: hex_dump

Search: Search took 0.01 seconds.

  1. Replies
    20
    Views
    1,644

    Possible I worded it incorrectly, but I...

    Possible I worded it incorrectly, but I understand the idea. Thanks again!
  2. Replies
    20
    Views
    1,644

    Excellent, thanks for catching that. I'm learning...

    Excellent, thanks for catching that. I'm learning C and C++ at the same time and still slip up on the former's intricacies sometimes. You are correct though, thanks for pointing that out.


    ...
  3. Replies
    20
    Views
    1,644

    That is obviously apparent, although I haven't...

    That is obviously apparent, although I haven't read the standard I'm assuming though that references are possibly implemented underneath 'the hood' via pointers. Much like arrays and pointers in C....
  4. Replies
    20
    Views
    1,644

    #include int main(void){ int a...

    #include <stdio.h>

    int main(void){

    int a = 5, b=11;
    const int* ptr1 = &a;
    int const *ptr2 = &b;


    printf("ptr1=%d ptr2=%d \n", *ptr1, ++*ptr2);
  5. Replies
    20
    Views
    1,644

    I only recently started learning C++ however from...

    I only recently started learning C++ however from what I know up till now I tend to look at C++ "passed-by-reference" as basically const pointers. They both accomplish the same thing but one requires...
Results 1 to 5 of 5