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 |
How can you avoid including a header more than once?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
how can we print hellow world programme without using semicolon
Why do we use header files in c?
What is the diffrent between while and do while statement ?
What is meant by recursion?
what is difference b/w extern & volatile variable??
Describe the order of precedence with regards to operators in C.
. Consider the following program main() { int a[5]={1,3,6,7,0}; int *b; b=&a[2]; } The value of b[-1] is (A) 1 (B) 3 (C) -6 (D) none
fn f(x) { if(x<=0) return; else f(x-1)+x; }
What is scope and lifetime of a variable in c?
What are the differences between new and malloc in C?