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
Why is structure important for a child?
How can I remove the trailing spaces from a string?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
Why we use conio h in c?
write a c program for swapping two strings using pointer
Differentiate between declaring a variable and defining a variable?
Place the #include statement must be written in the program?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Explain which function in c can be used to append a string to another string?
what is the different bitween abap and abap-hr?
What is the need of structure in c?
What is queue in c?
How do we open a binary file in Read/Write mode in C?
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?