✅ Explanation: • The loop runs from 5 to 1 (one row per iteration).
#coding #programming #programmer
✅ Explanation:
• The loop runs from 5 to 1 (one row per iteration).
• "12345" is a fixed string stored in memory.
• %.*s is the main trick here:
• * → precision is taken from variable i
• . → limits how many characters to print
• s → prints the string
• The value of i controls how many characters from "12345" are printed.
Iteration-wise output:
• i = 5 → prints first 5 characters → 12345
• i = 4 → prints first 4 characters → 1234
• i = 3 → prints first 3 characters → 123
• i = 2 → prints first 2 characters → 12
• i = 1 → prints first 1 character → 1
• No inner (j) loop is used.
• printf precision is doing the work of the second loop.
.
.
.
.
.
#coding #programming #programmer #python #developer #javascript #code #coder #technology #html #computerscience #codinglife #java #webdeveloper #tech #webdevelopment #css #softwaredeveloper #webdesign #linux #programmingmemes #machinelearning #datascience #artificialintelligence #webdev #frontend #reactjs
Kommentare
Kommentare aus dem Originalbeitrag auf Instagram
Noch keine Kommentare
