kuber

Members
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About kuber

  • Rank
    Newbie

Contact Methods

  • ICQ
    0
  1. c predict output

    void main(){int count=10, sum=0;int *temp;temp=&count; //Now temp will point the address of count variable. *temp=20; //We are assigning the value to the address which temp is pointing, so the changes will reflect in count variable,bcoz temp pointing to the count variabletemp=∑ //Again we are assigning the new address to temp, so now temp will point the address of sum.*temp=count; //value of count variable is 20 & it will assign to sum variable(look at just above line).printf("%d %d %d ",count,*temp,sum); //all will be 20.}