Mega Code Archive

 
Categories / C / Console
 

Characters in the format control string

#include <stdio.h> void main() {    int i = 10;    int j = 10;    int k = 10;    float fp1 = 10.0;    k = scanf("fp1 = %f i = %d %d", &fp1, &i , &j);    printf("\nCount of values read = %d", k);    printf("\nfp1 = %f\ti = %d\tj = %d\n", fp1, i, j); }