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
Explain a pre-processor and its advantages.
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What is the Purpose of 'extern' keyword in a function declaration?
Explain modulus operator.
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
Why can’t we compare structures?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
Is int a keyword in c?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
What do you mean by recursion in c?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
How many levels deep can include files be nested?
What are two dimensional arrays alternatively called as?
What is static and volatile in c?