how does printf function work
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 |
What are operators in c?
When is a null pointer used?
Is a pointer a kind of array?
what will be the output for the following program? main() { char ch = 'k'; char c; printf("%c",c); }
to find out the reverse digit of a given number
6 Answers Infosys, Microsoft, TCS, Wipro,
how to display 2-D array elements in spiral
What is the most efficient way to count the number of bits which are set in an integer?
What is malloc() function?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
how to swap four numbers without using fifth variable?
Can we compile a program without main() function?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university