what is difference between ++(*p) and (*p)++
Answer Posted / tejas
value that contained in p is incremented. (p is pointer.)
++(*p) --> pre-increment.
(*p)++ --> post-increment.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between array and structure in c?
i have a written test for microland please give me test pattern
What is array in C
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
What are near, far and huge pointers?
What are pragmas and what are they good for?
Explain how do you list a file’s date and time?
You have given 2 array. You need to find whether they will
create the same BST or not.
For example:
Array1:10 5 20 15 30
Array2:10 20 15 30 5
Result: True
Array1:10 5 20 15 30
Array2:10 15 20 30 5
Result: False
One Approach is Pretty Clear by creating BST O(nlogn) then
checking two tree for identical O(N) overall O(nlogn) ..we
need there exist O(N) Time & O(1) Space also without extra
space .Algorithm ??
DevoCoder
guest
Posted 3 months ago #
#define true 1
#define false 0
int check(int a1[],int a2[],int n1,int n2)
{
int i;
//n1 size of array a1[] and n2 size of a2[]
if(n1!=n2) return false;
//n1 and n2 must be same
for(i=0;i
What are the three constants used in c?
What is use of #include in c?
hi send me sample aptitude papers of cts?
What is advantage of pointer in c?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
how to find anagram without using string functions using only loops in c programming
Where are some collections of useful code fragments and examples?