main()
{
int ptr[] = {1,2,23,6,5,6};
printf("%d",&ptr[3]-&ptr[0]);
}

Answer Posted / baba

Ans: 12

The expression in printf evaluates the difference of the memory addresses of ptr[3] and ptr[0]

Is This Answer Correct ?    5 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why calloc is better than malloc?

668


What does emoji p mean?

685


Explain how do you sort filenames in a directory?

710


Explain what is a 'locale'?

695


What is header file in c?

706






What is function prototype in c with example?

655


What are qualifiers?

694


How can I use a preprocessorif expression to ?

682


What is the most efficient way to count the number of bits which are set in an integer?

675


What are the different types of objects used in c?

657


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

1590


Explain what is a program flowchart and explain how does it help in writing a program?

754


Why double pointer is used in c?

658


Write a program to implement queue.

746


What does. int *x[](); means ?

719