Computer Science, asked by ajaytak5481, 1 year ago

Explain logic about c=printf("%d",(printf("%d",(printf("1234")))));

Answers

Answered by charlie1505
1

Answer:

Output of a program is

123441

Explanation:

printf returns no. of printable characters. here the middle printf prints 4 as the right most printf prints 1234 i.e. 4 characters . similarly the outer most printf prints 1 as the middle printf prints only 1 character i.e. 4 only. Hence output is 1234--4--1

Similar questions