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 union in c?
What does double pointer mean in c?
Differentiate between static and dynamic modeling.
What is wrong with this code?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
how is the examination pattern?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
Why do we use header files in c?
What are the primitive data types in c?
What is array of structure in c programming?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
Explain how can a program be made to print the line number where an error occurs?
What is signed and unsigned?