Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

main()
{
int i,n=010;
int sum=0;
for(i=1;i<=n;i++)
{s=s+i;
}
printf("%d",&s);
getch();
}

Answer Posted / codingfreak

In the above question for

printf("%d",&s);

It prints the address location of variable s

printf("%d",s);

Prints the value 36.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you assign a different address to an array tag?

1213


Why is event driven programming or procedural programming, better within specific scenario?

2485


how to make a scientific calculater ?

2130


What is a 'null pointer assignment' error?

1252


What is the difference between printf and scanf in c?

1429


Can we declare a function inside a function in c?

1097


What is the difference between exit() and _exit() function in c?

1130


Why do we use return in c?

1050


Where register variables are stored in c?

1002


How can I remove the leading spaces from a string?

1215


What is difference between Structure and Unions?

1311


Explain what are the advantages and disadvantages of a heap?

1129


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

1108


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

1171


Write a code on reverse string and its complexity.

1095