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
Can you assign a different address to an array tag?
Why is event driven programming or procedural programming, better within specific scenario?
how to make a scientific calculater ?
What is a 'null pointer assignment' error?
What is the difference between printf and scanf in c?
Can we declare a function inside a function in c?
What is the difference between exit() and _exit() function in c?
Why do we use return in c?
Where register variables are stored in c?
How can I remove the leading spaces from a string?
What is difference between Structure and Unions?
Explain what are the advantages and disadvantages of a heap?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
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
Write a code on reverse string and its complexity.