main()
{
int ptr[] = {1,2,23,6,5,6};
printf("%d",&ptr[3]-&ptr[0]);
}

Answer Posted / jithin ramakrishnan

2

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

1722


What is action and transformation in spark?

589


What are void pointers in c?

572


How can I ensure that integer arithmetic doesnt overflow?

604


What is the use of printf() and scanf() functions?

622






How can I dynamically allocate arrays?

585


Explain what are run-time errors?

603


What is wrong in this statement?

601


Where are local variables stored in c?

567


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

803


Linked lists -- can you tell me how to check whether a linked list is circular?

636


What are the two types of functions in c?

560


Can math operations be performed on a void pointer?

581


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

607


what is the format specifier for printing a pointer value?

609