[Solved] Output of Nested printf and scanf in C [closed]
I think what you are missing is, your one line with nested function calls is basically same as this code: int scanf_result = scanf(“%d%d,”,&i,&a); int printf_result = printf(“PRINT %d\t”, scanf_result)); printf(“%d”, printf_result); scanf call should return 2 if you entered valid input, but can also return -1 for actual error, or 0 or 1 if … Read more