#include <stdio.h>
int main ( int argc, char* argv [ ] )
{
int value1 = 10;
int value2 = 5;
printf ( "\n The sum is :%d", value1 | value2 );
}
This is the answer asked by some one to add two numbers
with out using arithmetic operator?Yes this answer is write
it given out put as 15.But how?????
what is need of following line?
int main ( int argc, char* argv [ ] )
how it work?what is the meaning for this line?
please explain me.Advance thanks
Answer Posted / manojkumar
hello deepak sir
ur answer is exactly write.Thank you sir.
But i want to know the meaning or this and how it work?
will u please explain me?
thanks.
what is need of following line?
int main ( int argc, char* argv [ ] )
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is main () in c?
What 'lex' does?
Is flag a keyword in c?
Why is sizeof () an operator and not a function?
Explain main function in c?
What is a node in c?
Why array is used in c?
a program that can input number of records and can view it again the record
Why is this loop always executing once?
What is the use of typedef in structure in c?
What are preprocessor directives in c?
Write a program to print numbers from 1 to 100 without using loop 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
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What is the use of sizeof?