How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST
Answer Posted / raj
n&0x11111110
| Is This Answer Correct ? | 4 Yes | 9 No |
Post New Answer View All Answers
Why we use break in c?
the question is that what you have been doing all these periods (one year gap)
What is #define in c?
Explain about the functions strcat() and strcmp()?
What do the functions atoi(), itoa() and gcvt() do?
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
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
Can you return null in c?
What is use of pointer?
What is the use of clrscr?
How will you divide two numbers in a MACRO?
What’s a signal? Explain what do I use signals for?
What are the types of bitwise operator?
What are the different properties of variable number of arguments?
what is use of malloc and calloc?