Search:

Type: Posts; User: atran

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    665

    Also, I found this: ...

    Also, I found this:

    src=http://en.cppreference.com/w/c/language/scope
  2. Replies
    5
    Views
    665

    Hi; so two identifiers may belong to the same...

    Hi; so two identifiers may belong to the same namespace and have different scopes (whether nested or not).
  3. Replies
    5
    Views
    665

    Namespaces, and Enums and Scope

    Hello!

    I have two questions. I need help understanding what a namespace is in C; and the scope of enum constants is puzzling me.

    #1 The C11 standard draft states,

    What exactly is a...
  4. Replies
    10
    Views
    1,349

    When I tried the same code with -pedantic-errors,...

    When I tried the same code with -pedantic-errors, the compilation failed with the following error message:


    So, two pointers compare equal if one points to the object and the other points to the...
  5. Replies
    10
    Views
    1,349

    Thank you for your replies. I'm having trouble...

    Thank you for your replies.

    I'm having trouble understanding the C11 standard draft. Especially the following:


    Is there any implicit type conversion when two pointers of different types are...
  6. Replies
    10
    Views
    1,349

    According to this book C Programming: A Modern...

    According to this book C Programming: A Modern Approach, a pointer is not necessarily the same as an address. Here is one reason:
    The book explains, although not in detail since this is not a book...
  7. Replies
    10
    Views
    1,349

    Because if, according to some implementation, a...

    Because if, according to some implementation, a pointer value is an offset (not an address), then it's possible for two distinct pointer values (that is, each of which is an offset from a different...
  8. Replies
    10
    Views
    1,349

    Pointer Comparison

    Hello!

    I've read that there are, generally, different implementations of pointers: the most familiar implementation uses bare memory addresses. Others may use offsets (from a fixed memory address)...
  9. Replies
    3
    Views
    881

    Thanks. Is i=++i defined? If so, why? ...

    Thanks.


    Is i=++i defined? If so, why?


    Also, does an assignment expression return the value assigned to the left operand, or does it instead return the value of the left operand after the...
  10. Replies
    3
    Views
    881

    Undefined behavior

    Hi,


    Why does the following code exhibit undefined behavior?


    int i = 1;
    i += ++i;
Results 1 to 10 of 10