what is the difference between const volatile int i
& volatile const int j;
Answer Posted / raj
There is no difference between const volatile int i and
volatile const int j
| Is This Answer Correct ? | 13 Yes | 10 No |
Post New Answer View All Answers
Why dont c comments nest?
What is the use of printf() and scanf() functions?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
What is a c token and types of c tokens?
What is putchar() function?
Why do we write return 0 in c?
What are void pointers in c?
What is the function of this pointer?
Why functions are used in c?
What is pre-emptive data structure and explain it with example?
Is it possible to pass an entire structure to functions?
Is c is a procedural language?
Write a program to swap two numbers without using third variable?
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 a class c rental property?