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
program to convert a integer to string in c language'
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.
Is fortran faster than c?
What are the types of pointers?
What are multibyte characters?
Difference between macros and inline functions? Can a function be forced as inline?
Do you know pointer in c?
How can you draw circles in C?
What are the different types of errors?
What language is windows 1.0 written?
What is the argument of a function in c?
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
What are the usage of pointer in c?
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.
What does #pragma once mean?