+ 1
Explain the output of this program.
#include<stdio.h> int main() { int n = printf("0"); printf("%d",n); } The output of this program is =01 EXAPLAIN HOW ?
11 Respostas
+ 7
See this example you will understood much better
https://code.sololearn.com/ckQ5cwZvwzNo/?ref=app
+ 7
Riya Kumari welcome mam
+ 5
First printf will print 0 then in second printf u write %d to it will count total characters in first printf and total char is one right so it print 1.
But if u will write like this
Explain the output of this program.
#include<stdio.h>
int main()
{
int n = printf("riya");
printf("%d",n);
}
Then first printf will print riya then it will count total char and total chars are 4 so output will be riya4 hope u understood.
+ 3
0 -> del printf
1-> números de caracteres del printf(uno caractere)
+ 1
+ 1
Riya Kumari wcm
+ 1
The output of the program is "01".if we were given the control string in printf as the variable declarations, we simply have to count the number of elements in the string, and that assigns to the variable..
0
codemonkey thanx
0
Martin Taylor thx
0
🐉🐉 thankx alot for the explanation