0
Returns zero why?
#include <stdio.h> int main() { int a,b,work; printf("enter the first value:"); scanf("%d",&a); printf("enter the second value:"); scanf("%d",&b); a+=b; printf("%d",work);
5 Answers
+ 4
Chittaranjan behera , the variable work is not initialized with value. Maybe you want to print the variable a, which you applied math operation.
+ 2
TheWhÂĄteCat đ§đŹ in codeblocks the answer is 2 why?
+ 2
Samsil Arefeen , if you place the code in Playground you'll see the result => 0 with initialization error.
+ 2
Thanks TheWhÂĄteCat đ§đŹ or black catđ€.
0
Got it thank u the white cat