how to add numbers without using arithmetic operators.

Answer Posted / santhi perumal

#include<Stdio.h>
#include<conio.h>

void main()
{
int a=10,b=20;
while(b--) a++;
printf("Sum is :%d",a);
}

Is This Answer Correct ?    9 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2207


What is page thrashing?

658


Where static variables are stored in c?

596


what is event driven software and what is procedural driven software?

2020


Is fortran faster than c?

589






Can you pass an entire structure to functions?

703


Why is c not oop?

542


What do mean by network ?

666


1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if

3985


What is the value of c?

580


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

678


What is the difference between procedural and functional programming?

527


What is void pointers in c?

598


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(); }

1869


Can you please explain the difference between exit() and _exit() function?

601