Adding two numbers without using plus(+) operator

int main() {
int x = 3 , y = 4;
while(y){
  x++;
  y--;
}
printf("%d",x);
 
  return 0;
}

output: 7

Comments

Popular posts from this blog

Finding the second largest in an array