how does printf function work

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a local variable be volatile in c?

761


what is the height of tree if leaf node is at level 3. please explain

1838


How can I write functions that take a variable number of arguments?

851


What are the types of pointers?

782


Is c language still used?

735


write a program to find the given number is prime or not

4287


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

831


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

921


What are the different types of objects used in c?

751


Explain the ternary tree?

794


string reverse using recursion

2082


a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if

922


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

850


Explain what is the purpose of "extern" keyword in a function declaration?

817


How can you call a function, given its name as a string?

916