main()
{
intx=2,y=6,z=6;
x=y=z;
printf(%d",x)
}
Answer Posted / dhananjay
x=6 beacuse x will contain the latest value.
| Is This Answer Correct ? | 21 Yes | 14 No |
Post New Answer View All Answers
Explain union. What are its advantages?
What's the right way to use errno?
what is the different bitween abap and abap-hr?
find the sum of two matrices and WAP for it.
What is the best way to store flag values in a program?
In a switch statement, what will happen if a break statement is omitted?
Does c have class?
Explain what happens if you free a pointer twice?
What does struct node * mean?
what is a function method?give example?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
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 is data type long in c?
Why does notstrcat(string, "!");Work?
write a program to find the given number is prime or not