Search:

Type: Posts; User: Trancongan

Search: Search took 0.01 seconds.

  1. > a = ++b + b; > Which b is loaded into a...

    > a = ++b + b;
    > Which b is loaded into a register (ie evaluated) first - left or right?
    >Answer - you don't know (for sure).

    Sorry Salem,
    Maybe I don't have much experiences in C...
  2. I don't think so. If it evaluates from right to...

    I don't think so. If it evaluates from right to left, result of the third expression is 21, not 18.

    Do you agree with me ? :p
  3. Thanks for your advises very much. I agree...

    Thanks for your advises very much.
    I agree with you that we shouldn't pay attention to these useless points. But I think that when we face an unusual problem, we shouldn't discover it as much as...
  4. Hi Salem, Thanks for your advise. I also...

    Hi Salem,
    Thanks for your advise.
    I also think like you but I have face with the situation that requires me have to understand this problem. That is in my exam, there is a question:
    Q: The...
  5. Side_effect: (++x + y*x + y*x) != (y*x + ++x + y*x) ?

    Hello everybody,
    I have met many problem with C because of side-affect but until now I couldn't handle them yet.
    I have a code segment that:
    x=2; y= 2;
    printf("%d\n", ++x + y*x +...
  6. Replies
    7
    Views
    4,528

    C programming language quiz

    Hello everybody,

    I am learning C language and I would like to make some quiz to test my progress. I have taken the test on BrainB and TechniProfiles site but they have little question. Who know...
Results 1 to 6 of 6