Finding printf()'s return value - C Language Basics

C examples for Language Basics:printf

Description

Finding printf()'s return value

Demo Code

#include <stdio.h>

int main(void){
    int v = 212;//from   w  ww  . j a v  a  2  s  .  c  o  m
    int rv;
    
    rv = printf("%d F is water's boiling point.\n", v);
    printf("The printf() function printed %d characters.\n", rv);
    return 0;
}

Result


Related Tutorials