C
Programming and Technical
Programming
Output
whats the output of
main()
{
printf("%d",printf("%d",printf("%d",printf("%s","I Luv Program"))));}
PLZ Explain with solution
Read Solution (Total 3)
-
- I Luv Program1321
first string it will return number of character i.e. 13 then 13 has 2 character and then 2 has 1 character
hence answer is I Luv Program1321 - 9 years agoHelpfull: Yes(8) No(0)
- o/P=i luv program1321
printf("%s","I Luv Program")prints i luv program
printf("%d",printf("%s","I Luv Program")) prints 13 (words including spaces in i luv program)
printf("%d",printf("%d",printf("%s","I Luv Program"))) prints 2
printf("%d",printf("%d",printf("%d",printf("%s","I Luv Program")))) prints 1
- 9 years agoHelpfull: Yes(7) No(0)
- o/p:I Luv Program1432
i luv program will return 14 characters (including null character)
next 13 will return 3 charactres.(including null)
next 3 will return 2 characters.(including null) - 9 years agoHelpfull: Yes(0) No(3)
C Other Question