why they used printf instead of print?
What does 'f' represent in "printf" function in C language?
The class of printf functions stands for "print formatted" :)
Reply:As he said there is a family of functions used for formatted output! printf, fprintf, sprintf, etc!
Don't ask me why they made so many! Ask Dennis Ritchie! printf prints to the standard output so it is the most common one!
I even like printf...print is just too common! printf is original...it is elite :p
Reply:print formated.....
Reply:Hi!! f in printf stands for format or formated
At first it may appear that C's basic IO functions look strange compared
to "cin" and "cout". But in fact "scanf" and "printf" are very powerful
tools. The "f" in "printf" and "scanf" stands for "formated". The first
argument to printf is always a string which defines a format. Here's an
example:
int x = 3; int y = 4;
printf("x is %d and y is %d",x,y);
yu gi oh cards
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment