what is difference between ++(*p) and (*p)++
Answer Posted / manju
both increments the value not the address. but the
difference lies in post and pre increment..
for example
main()
{
int i=2,*p;
p=&i;
}
when (*p)++ is given the o/p will be 2.
and in next line the value is incremented. in ++(*p)
the value is 3 since it is post
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain the process of converting a Tree into a Binary Tree.
Why pointers are used?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
Write the syntax and purpose of a switch statement in C.
What are multidimensional arrays?
can anyone please tell about the nested interrupts?
What is enumerated data type in c?
What is static memory allocation? Explain
What is a double c?
How does placing some code lines between the comment symbol help in debugging the code?
What is a wrapper function in c?
What is the use of sizeof?
Why is c platform dependent?
What standard functions are available to manipulate strings?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.