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

What is anagram in c?

712


What is the basic structure of c?

794


How is null defined in c?

880


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

1159


What is the difference between text and binary modes?

887


How can I make it pause before closing the program output window?

811


Explain bitwise shift operators?

938


what is the format specifier for printing a pointer value?

797


Write a program to print ASCII code for a given digit.

902


What is the use of c language in real life?

788


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

844


What is a void pointer in c?

857


Is c weakly typed?

773


What is structure data type in c?

765


What are the ways to a null pointer can use in c programming language?

896