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
What is the difference between array and linked list in c?
How can you draw circles in C?
Who is the founder of c language?
Can you explain the four storage classes in C?
What is the difference between if else and switchstatement
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Using which language Test cases are added in .ptu file of RTRT unit testing???
Why does this code crash?
Is c is a high level language?
Differentiate Source Codes from Object Codes
What is return in c programming?
What is modifier & how many types of modifiers available in c?
the question is that what you have been doing all these periods (one year gap)
Difference between exit() and _exit() function?