how does printf function work



how does printf function work..

Answer / vignesh1988i

1)printf() is a built in library function which is defined
in <stdio.h> header file...
2) in printf(); function we can pass
1) entire string within "...." like :
eg: printf("my name is vignesh");

2) string with list of variables like :
eg: printf("%d%d" , i,j);
| |
first second
argument argument

3) like every function returns a value , PRINTF returns the
no. of characters which is inside "...".
eg: printf("%d",printf("hai how are u?"));
the output will be 14.....

4) printf() function is having direct contact with VDU
(video display unit) in the system..... so only it is
displayin every thing in the screen...........

thank u

Is This Answer Correct ?    7 Yes 4 No

Post New Answer

More C Interview Questions

What is an lvalue in c?

0 Answers  


What are structures and unions? State differencves between them.

0 Answers   iNautix,


What are the different types of control structures in programming?

0 Answers  


what does ‘#include’ mean?

1 Answers   TCS,


class foo { public: static int func(const char*& p) const; }; This is illegal, why?

8 Answers   Google,






if ENTERED FIVE DIGITS DESIGN A PROGRAM THAT WILL FIND CORRESPONDING VALUE FROM ASCII TABLE

1 Answers  


Write the following function in C. stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return - 1. The function should not make use of any C library function calls.

3 Answers   Google, Infosys, JTL, OpenFeel,


What are comments and how do you insert it in a C program?

0 Answers  


What is void main () in c?

0 Answers  


4.weight conversion: Write a program that will read weight in pounds and convert it into grams.print both the original weight and the converted value.There are 454 grams in a pound.design and carry out a test plan for this program.

1 Answers   Wipro,


Calculate 1*2*3*____*n using recursive function??

0 Answers  


what is difference between ANSI structure and C99 Structure?

1 Answers   Wipro,


Categories