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
Explain setjmp()?
When should the const modifier be used?
Is Exception handling possible in c language?
What is pointer in c?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What are the different types of pointers used in c language?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
Does c have function or method?
Why can arithmetic operations not be performed on void pointers?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What is array in C
What is structure padding and packing in c?
Is it possible to have a function as a parameter in another function?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
By using C language input a date into it and if it is right?