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
How do you view the path?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
Explain can static variables be declared in a header file?
Are negative numbers true in c?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What is string length in c?
Write a program to find factorial of a number using recursive function.
How can I dynamically allocate arrays?
How do I read the arrow keys? What about function keys?
Write a program to reverse a given number in c?
How can I find the modification date and time of a file?
Difference between strcpy() and memcpy() function?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
Tell me what is the purpose of 'register' keyword in c language?
Why c is called a middle level language?