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


Please Help Members By Posting Answers For Below Questions

program to convert a integer to string in c language'

1984


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

1724


Is fortran faster than c?

579


What are the types of pointers?

598


What are multibyte characters?

642






Difference between macros and inline functions? Can a function be forced as inline?

710


Do you know pointer in c?

589


How can you draw circles in C?

623


What are the different types of errors?

643


What language is windows 1.0 written?

573


What is the argument of a function in c?

573


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

652


What are the usage of pointer in c?

703


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

660


What does #pragma once mean?

684