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
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Is it fine to write void main () or main () in c?
What is difference between scanf and gets?
Compare array data type to pointer data type
What is pragma in c?
what is the different bitween abap and abap-hr?
C language questions for civil engineering
What is && in c programming?
Is c procedural or functional?
FILE PROGRAMMING
can any one provide me the notes of data structure for ignou cs-62 paper
What is integer constants?
Write a program to generate the Fibinocci Series
What is the use of pointers in C?
What does volatile do?