write a c program to add two integer numbers without using
arithmetic operator +
Answer Posted / praveenkumar
main()
{
int a,b,c;
printf("enter a,b values:");
scanf("%d%d",&a,&b);
c=((a)-(-b));
printf("a+b="&c);
}
| Is This Answer Correct ? | 66 Yes | 3 No |
Post New Answer View All Answers
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
Which type of language is c?
What are types of functions?
What is function in c with example?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
Using which language Test cases are added in .ptu file of RTRT unit testing???
Explain what is #line used for?
What is maximum size of array in c?
I need previous papers of CSC.......plz help out by posting them.......
What is the difference between NULL and NUL?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
Is that possible to add pointers to each other?
What do you mean by keywords in c?
How are 16- and 32-bit numbers stored?
What are the different categories of functions in c?