Sunday, 14 October 2012

what does printf returns


"printf returns the number of charecters printed" 

#include<stdio.h>
#include<conio.h>


int main()
{
    int k=0;
    k=printf("kdhsafuh");
    printf("\nk=%d",k);
    getch();
    return 0;
}

output:k=8

No comments:

Post a Comment