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


Please Help Members By Posting Answers For Below Questions

Explain setjmp()?

663


When should the const modifier be used?

666


Is Exception handling possible in c language?

1590


What is pointer in c?

751


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(); }

1872






What are the different types of pointers used in c language?

622


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

624


Does c have function or method?

599


Why can arithmetic operations not be performed on void pointers?

600


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

1482


What is array in C

719


What is structure padding and packing in c?

631


Is it possible to have a function as a parameter in another function?

606


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

675


By using C language input a date into it and if it is right?

586