Ask Experts Questions for FREE Help !
Ask
    pbhuvanesh's Avatar
    pbhuvanesh Posts: 1, Reputation: 1
    New Member
     
    #1

    Aug 7, 2014, 07:23 AM
    Can anyone explain how these 2 C programs work?
    Hello all,
    I have trouble undersandig this two c programs so could you please help me?

    Thanks in Advance.

    Program #1:

    #include<stdio.h>
    int main()
    {
    int I = 0, j = 0;


    if (I && (j =100 +10))


    {
    }


    printf("\n %d",j);


    return 0;
    }

    Program #2:

    #include <stdio.h>;


    int main()
    {
    int a = 10;


    if (a == a--)


    printf("TRUE 1\t");


    a = 10;


    if (a == --a)


    printf("TRUE 2\t");


    }

Check out some similar questions!

Programs only work in safe mode [ 0 Answers ]

Hello, When I use safe mode all programs work. When I am in non safe mode any icon I click on does not respond. I have run anti virus scans and they are clear. I have also ran malewarebytes it is also clear. Do I have a virus? Do I have a software issue or hardware issue? Both? Would doing a...

Some programs will not connect, but all browsers work fine [ 2 Answers ]

I recently purchased a Zune, with the Zune software everything works, until I try to sign in. I figured out that the problem is that the software just can't connect to the internet. The same is true with the instalation of other windows software that needs a connection to install. I have windows XP...

Doctoral Programs accepting various course work. [ 1 Answers ]

I have an MBA. In addition I have taken a considerable number pf individual, business related courses over a 10 year period. In addition I have considerable executive training programs. I would like to go on for a Doctorate. Is there any reputable institution traditional or on line that would...

Programs won't work. [ 2 Answers ]

Nothing that I download will work on my laptop... Not even FIREFOX. I've tried setting my firewall to allow it, and that didn't work. Does anyone have any other ideas. And no worries, this is not to run an illegal programs. I want to run Trillian and Firefox, but this is not...


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.