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

What is omp_num_threads?

575


How many bytes is a struct in c?

719


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.

1785


What does it mean when the linker says that _end is undefined?

625


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

678






What are the types of unary operators?

654


What are register variables? What are the advantage of using register variables?

676


What are variables c?

612


Write a program to print all permutations of a given string.

638


What’s the special use of UNIONS?

655


How can a process change an environment variable in its caller?

648


How can I do peek and poke in c?

612


What are local static variables? How can you use them?

639


Are pointers integer?

543


What are the types of variables in c?

578