What are pointers? What are different types of pointers?
write a own function for strstr
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<n1-1;i++) { if( !( (a1[i]>a1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }
without using control structures and control structures find the max and min of given 2 nos
Why does not use getgh(); and <conio.h> in c language.
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
Design a program using an array that searches a number if it is found on the list of the given input numbers and locate its exact location in the list.
how many keywords do C compile?
7 Answers Microsoft, Practical Viva Questions,
what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }
What is the memory allocated by the following definition ? int (*x)[10];
Describe wild pointers in c?
List the difference between a While & Do While loops?
What is the difference between constant pointer and pointer to a constant. Give examples.