main()
{
int ptr[] = {1,2,23,6,5,6};
printf("%d",&ptr[3]-&ptr[0]);
}
Answer Posted / sandeep
3
because aray pointer arthematic considers positions(index) of aray
| Is This Answer Correct ? | 46 Yes | 10 No |
Post New Answer View All Answers
Here is a neat trick for checking whether two strings are equal
Hi can anyone tell what is a start up code?
Function calling procedures? and their differences? Why should one go for Call by Reference?
Why can arithmetic operations not be performed on void pointers?
What is structure padding and packing in c?
How can I swap two values without using a temporary?
Without Computer networks, Computers will be half the use. Comment.
What is string constants?
What are variables and it what way is it different from constants?
What is the difference between malloc calloc and realloc in c?
How can I write functions that take a variable number of arguments?
State the difference between realloc and free.
What is the process to create increment and decrement stamen in c?
How can you tell whether a program was compiled using c versus c++?
What’s the special use of UNIONS?