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 Antworten
+ 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