Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by kuber

  1. kuber

    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.}