void main()
{
int i=5;
printf("%d",i++ + ++i);
}
Answer Posted / gajendra
1
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is a shell structure examples?
What is a stream?
How arrays can be passed to a user defined function
What is calloc()?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
Explain how do you list a file’s date and time?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What is mean by data types in c?
Is it possible to execute code even after the program exits the main() function?
What is the difference between pure virtual function and virtual function?
Can we increase size of array in c?
Can you return null in c?
Why isnt there a numbered, multi-level break statement to break out
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
Is stack a keyword in c?