What is diffrance between declaration and defination of a variable or function
Answer Posted / nagarjuna reddy
once a variable is defined it'l never change through entire
program.
but declaration of a variable can be changed as per our
requirement.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is spark map function?
What is #pragma statements?
What do you mean by keywords 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
Is it possible to use curly brackets ({}) to enclose single line code in c program?
What does != Mean in c?
What is array in c with example?
What is advantage of pointer in c?
How can I do serial ("comm") port I/O?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
Can we use any name in place of argv and argc as command line arguments?
What is meant by type specifiers?
Explain what standard functions are available to manipulate strings?
When should volatile modifier be used?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include