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
Write program to remove duplicate in an array?
What is wrong in this statement? scanf(ā%dā,whatnumber);
Describe dynamic data structure in c programming language?
plz let me know how to become a telecom protocol tester. thank you.
What is variable and explain rules to declare variable in c?
Explain what are linked list?
What is "Duff's Device"?
Difference between linking and loading?
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
What is c standard library?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
What is pointers in c?
Where can I get an ansi-compatible lint?
Explain the difference between malloc() and calloc() in c?
What is the difference between declaring a variable and defining a variable?