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


Please Help Members By Posting Answers For Below Questions

Is it possible to execute code even after the program exits the main() function?

807


What is hashing in c?

638


Explain the binary height balanced tree?

718


Whats s or c mean?

591


Is there sort function in c?

574






Explain what are run-time errors?

605


What are the 5 types of organizational structures?

546


What is the size of structure in c?

700


What is scanf () in c?

656


What are the standard predefined macros?

627


Is r written in c?

722


Write a program to print “hello world” without using semicolon?

669


Tell us two differences between new () and malloc ()?

610


What is the meaning of typedef struct in c?

591


What is sizeof c?

604