How to add two numbers without using arithmetic operators?
Answer Posted / kavi
#include<stdio.h>
int a,b,c;
{
printf("enter the two values");
scanf("%d","%d",&a,&b);
c=a||b;
}
| Is This Answer Correct ? | 10 Yes | 80 No |
Post New Answer View All Answers
What are register variables in c?
What is a macro in c preprocessor?
Why is not a pointer null after calling free?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
How to find a missed value, if you want to store 100 values in a 99 sized array?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
Why is this loop always executing once?
What is the benefit of using an enum rather than a #define constant?
What is main function in c?
Function calling procedures? and their differences? Why should one go for Call by Reference?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
Why does not c have an exponentiation operator?
Why is #define used?
Difference between pass by reference and pass by value?