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
Why is it important to memset a variable, immediately after allocating memory to it ?
code for replace tabs with equivalent number of blanks
What are pointers?
What is a far pointer in c?
Explain c preprocessor?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Is python a c language?
Explain how do you convert strings to numbers in c?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
In C, What is the #line used for?
State the difference between x3 and x[3].
What are terms in math?
What is the stack in c?
what is ur strangth & weekness