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

What is 1f in c?

1833


Why c language?

642


What does %p mean c?

623


Differentiate between #include<...> and #include '...'

615


When is a null pointer used?

637






What is difference between function overloading and operator overloading?

651


What is a static variable in c?

663


What is && in c programming?

674


the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

754


Can the “if” function be used in comparing strings?

587


Explain about the constants which help in debugging?

843


Explain the use of keyword 'register' with respect to variables.

588


in iso what are the common technological language?

1631


Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.

679


How do you use a pointer to a function?

629