C
Programming and Technical
Programming
Output
main()
{
char *str = "12345";
printf("%c %c %cn", *str, *(str++), *(str++));
}
Read Solution (Total 4)
-
- o/p : Error
Reason : we cant change the base address. - 9 years agoHelpfull: Yes(4) No(3)
- the output will be 321321.
- 9 years agoHelpfull: Yes(1) No(3)
- Answer will be 3 2 1
- 9 years agoHelpfull: Yes(1) No(0)
- 3 2 1
execution started from right side
so 3rd value takes as 1 and thn increment ll be done ie its bcm 2
so for 2nd value it ll be 2 & thn increment done n bcm 3
and at last 1st value ll be 3
and output ll be display as frm left to right
ie 3 2 1
- 9 years agoHelpfull: Yes(1) No(0)
C Other Question