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

Why is structure important for a child?

865


How can I remove the trailing spaces from a string?

859


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

900


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

869


Why we use conio h in c?

938


write a c program for swapping two strings using pointer

2374


Differentiate between declaring a variable and defining a variable?

852


Place the #include statement must be written in the program?

797


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

969


Explain which function in c can be used to append a string to another string?

874


what is the different bitween abap and abap-hr?

1966


What is the need of structure in c?

827


What is queue in c?

801


How do we open a binary file in Read/Write mode in C?

1000


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

839