replace any thing we can use conversion character like %s and %d
And he gave a example like
printf("%s is a good programmer \n", "John");
printf("%s is a good boy \n", "David");
printf("%s is a good girl \n", "Angela");
So why we need to write that extra work?
We can write directly
Printf... John is a good programmer...
Printf... David is a good boy...
Printf... Angela is a good girl...
What's the point using that and doing extra work... In which case it will be useful?
you can replace the second argument with a variable
This?
because C is very limited
so in this case
Обсуждают сегодня