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

Write program to remove duplicate in an array?

595


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

722


Describe dynamic data structure in c programming language?

599


plz let me know how to become a telecom protocol tester. thank you.

1740


What is variable and explain rules to declare variable in c?

549






Explain what are linked list?

617


What is "Duff's Device"?

697


Difference between linking and loading?

686


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

2238


What is c standard library?

687


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

816


What is pointers in c?

646


Where can I get an ansi-compatible lint?

634


Explain the difference between malloc() and calloc() in c?

573


What is the difference between declaring a variable and defining a variable?

716