main()
{
int ptr[] = {1,2,23,6,5,6};
printf("%d",&ptr[3]-&ptr[0]);
}
Answer Posted / baba
Ans: 12
The expression in printf evaluates the difference of the memory addresses of ptr[3] and ptr[0]
| Is This Answer Correct ? | 5 Yes | 10 No |
Post New Answer View All Answers
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 are lookup tables in c?
Can you please explain the difference between strcpy() and memcpy() function?
What is the size of a union variable?
When should a type cast not be used?
which is an algorithm for sorting in a growing Lexicographic order
What is the difference between far and near ?
Differentiate between functions getch() and getche().
Is flag a keyword in c?
How do I determine whether a character is numeric, alphabetic, and so on?
What is a constant?
How is a pointer variable declared?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
Explain the concept and use of type void.
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9