how to add numbers without using arithmetic operators.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / mobashyr
#include<stdio.h>
int main()
{
int x=5,y=10; //Use scanf otherwise
int z=add(x,y);
return 0;
}
int add(int a,int b)
{
int i;
for(i=0;i<b;i++)
{
a++;
}
return a;
}
Is This Answer Correct ? | 0 Yes | 6 No |
Answer / satish gaikwad
suppose a=6 and b=3
we can write c=a-(-b)
which will give us c=9
Is This Answer Correct ? | 5 Yes | 23 No |
What are unions in c?
Heyyy All, Just a challenge . A C program with if Else if(){ /// insert sumthing print ("in if") // insert sumting } else { ///// insert sumthing print ("in else"); //// insert sumthing } can anyone modify it so that program prints. if and else both
hOW Can I add character in to pointer array of characters char *a="indian"; ie I want to add google after indian in the char *a
cavium networks written test pattern ..
Why ordinary variable store only one value
dynamically allocate memory for linear array of n integers,store some elements in it and find some of them
Explain the difference between #include "..." And #include <...> In c?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
main() { int i; for(i=0;i<5;i++) printf("%d",1l<<i); } why doesn't 'l' affect the code??????
write a program to swap two variables a=5 , b= 10 without using third variable
How can we open a file in Binary mode and Text mode?what is the difference?
Explain how to reverse singly link list.