how to add numbers without using arithmetic operators.
Answer Posted / dally
#include<stdio.h>
int main()
{
int a=3,b=5;
while(a--)
b = b++;
printf("%d\n");
}
| Is This Answer Correct ? | 2 Yes | 8 No |
Post New Answer View All Answers
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What is header file definition?
Write a program to show the change in position of a cursor using c
What are the types of type specifiers?
difference between native and cross compilers
What is volatile variable in c?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What does *p++ do? What does it point to?
Where local variables are stored in c?
What are variables 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
Can we use visual studio for c?
How do I send escape sequences to control a terminal or other device?
How can you avoid including a header more than once?
What is static volatile in c?