+ 2
This code gives an output=01. I did not get this. Can anyone pls explain?
4 Respostas
+ 2
#include <stdio.h>
int main() {
int n=printf("0"); // It prints 0 on the screen and returns 1 to the variable n
printf("%d",n); //It prints 1 to the screen
return 0;
}
// So the final result is 01
And I got the right output even I checked with your program. There is no problem in your code.
For more Interesting Articles, visit my blog: https://doalongme.com/
+ 1
Thank u
+ 1
printf() returns the amount of characters that were printed
+ 1
Thank u