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
Why calloc is better than malloc?
What does emoji p mean?
Explain how do you sort filenames in a directory?
Explain what is a 'locale'?
What is header file in c?
What is function prototype in c with example?
What are qualifiers?
How can I use a preprocessorif expression to ?
What is the most efficient way to count the number of bits which are set in an integer?
What are the different types of objects used in c?
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.
Explain what is a program flowchart and explain how does it help in writing a program?
Why double pointer is used in c?
Write a program to implement queue.
What does. int *x[](); means ?