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
Is it possible to execute code even after the program exits the main() function?
What is hashing in c?
Explain the binary height balanced tree?
Whats s or c mean?
Is there sort function in c?
Explain what are run-time errors?
What are the 5 types of organizational structures?
What is the size of structure in c?
What is scanf () in c?
What are the standard predefined macros?
Is r written in c?
Write a program to print “hello world” without using semicolon?
Tell us two differences between new () and malloc ()?
What is the meaning of typedef struct in c?
What is sizeof c?