The output for the previous program is.. 77 77 Reason : the - TopicsExpress



          

The output for the previous program is.. 77 77 Reason : the variables a and pa have the same types. In the third statement, pa is set to point at a. It doesnt matter that a has not been initialized yet; pa points at the little box of memory that has the name a. The fourth statement *pa = 77 works like this: Step 1: The expression on the right of the = is evaluated. This results in the value 77. Step 2: The expression on the left of the = determines where to put the 77. The *pa says to follow the pointer in pa, so the 77 is put in the variable a. [Bhuvana] :D
Posted on: Sun, 04 Jan 2015 06:00:01 +0000

Trending Topics



Recently Viewed Topics




© 2015