printf function int to %f , float to %d trying to experiment
#include<stdio.h>
int main(){
int i=10;
float x=43.2892f;
printf("i=%f x=%d
",i,x);
return 0;
}
OUTPUT:
i=43.289200 x=10
Need help to understand why these variables are interchanging ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…