c - What does "%d ->" in printf mean? -



c - What does "%d ->" in printf mean? -

i skimming through this in line 114 written printf("%d -> ", t->value); inquire is, "%d -> mean? typo or else?

example:

struct btnode { int value; struct btnode * l; struct btnode * r; } * root = null, * temp = null, * t2, * t1; void inorder(struct btnode * t) { if (root == null) { printf("no elements in tree display"); return; } if (t->l != null) inorder(t->l); printf("%d -> ", t->value); if (t->r != null) inorder(t->r); }

it's nil special, normal format string.

printf("%d -> ", 42);

outputs:

42 ->

c binary-tree

Comments

Popular posts from this blog

javascript - I need to update the text of a paragraph by inline edit -

javascript - THREE.js reposition vertices for RingGeometry -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -