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
What is #define size in c?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What is sizeof return in c?
how to execute a program using if else condition and the output should enter number and the number is odd only...
Why header files are used?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
what do you mean by inline function in C?
What is function pointer c?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Do you know pointer in c?
How to Throw some light on the splay trees?
Write a program to check armstrong number in c?
What is int main () in c?
What is sizeof array in c?
What is spaghetti programming?