Answer Posted / nashiinformaticssolutions
A pointer is a variable that stores the memory address of another variable.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is null a keyword in c?
What is c language & why it is used?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
will u please send me the placement papers to my mail???????????????????
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What is variable in c example?
Explain what happens if you free a pointer twice?
What is the total generic pointer type?
Explain the use of function toupper() with and example code?
Explain bitwise shift operators?
What is structure in c language?
What is substring in c?
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 the difference between malloc calloc and realloc in c?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.