how does the C compiler interpret the following two
statements
p=p+x;
q=q+y;
a. p=p+x;
q=q+y
b. p=p+xq=q+y
c. p=p+xq;
q=q+y
d. p=p+x/q=q+y
Answer Posted / preetisahu
answer is a
Is This Answer Correct ? | 31 Yes | 0 No |
Post New Answer View All Answers
What is scope of variable in c?
Can we declare a function inside a function in c?
What is the difference between the expression “++a” and “a++”?
Describe dynamic data structure in c programming language?
What is structure padding in c?
What is a stream?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Is a house a shell structure?
How many bytes is a struct in c?
What is the purpose of the preprocessor directive error?
What is the benefit of using #define to declare a constant?
What type is sizeof?
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
How will you delete a node in DLL?
What is void c?