Write a c program to add 2 no without using plus operator?

1 answer

Answer

1231762

2026-05-02 06:45

+ Follow

You can make use of pointers to achieve this.

void add( int *a, int *b){

(*a) += (*b);

}


Now if two numbers a and b are given and you need to store the value in variable c, then you would perform:


c = a;

add(&c,&b);


ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.