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
Can a file other than a .h file be included with #include?
What is bubble sort technique in c?
Is there a way to compare two structure variables?
Explain about block scope in c?
What is restrict keyword in c?
Between macros and functions,which is better to use and why?
What is the best organizational structure?
What are the disadvantages of a shell structure?
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
What is meant by type specifiers?
What is the general form of a C program?
What is union and structure?
What is printf () in c?
What are pragmas and what are they good for?
What is use of #include in c?