Thursday, July 9, 2009

In C language what is the signature og the function printf()?

Function prototype is:


int printf( const char *Format, ... );





its called as:





printf("Hello world");


int i = 10;


printf("Value of i = %d", i);





check this:





http://www.die.net/doc/linux/man/man3/pr...


http://www.geocities.com/learnprogrammin...


http://cplus.about.com/library/weekly/aa...

In C language what is the signature og the function printf()?
its





int printf (const char *format [, argument, ...] );





It returns the number of bytes it output on success and EOF on error...





Hope it helps...
Reply:printf() is a built in function that sends the arguments (what ever u type inside the brackets) to the standard output device i.e. the screen.





example :





printf("Hello World");
Reply:In ANSI C, the signature, or prototype of the popular "printf()" function is as follows:





int _Cdecl printf(const char *__format, ...);


No comments:

Post a Comment