+ 6

Why is the output of this program : hello 0

#include <stdio.h> int main() { char str[100]; int i; scanf("%s %d", str, &i ); printf("%s %d", str, i); return 0; }

24th Jan 2019, 6:30 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
1 ответ
+ 3
you had to wrote "hello" in input box then it is printed + 0 returned by return statement.
24th Jan 2019, 6:34 PM
Hubert Dudek
Hubert Dudek - avatar