#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
Post New Answer View All Answers
How can a program be made to print the line number where an error occurs?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
By using C language input a date into it and if it is right?
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 shell structure examples?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is wrong with this code?
What are the different types of pointers used in c language?
Where static variables are stored in memory in c?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
Why isn't any of this standardized in c? Any real program has to do some of these things.
What is difference between structure and union in c?
What is the auto keyword good for?
Tell me can the size of an array be declared at runtime?
What is the difference between printf and scanf )?