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 are called c variables?
What is main () in c language?
What are pointers in C? Give an example where to illustrate their significance.
What is a structure in c language. how to initialise a structure in c?
what does static variable mean?
What is a program flowchart?
What is the size of structure pointer in c?
What is a string?
What is this pointer in c plus plus?
Why is C language being considered a middle level language?
What is the benefit of using const for declaring constants?
What is a global variable in c?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
With the help of using classes, write a program to add two numbers.
What is the use of gets and puts?