Type Conversion Between int, float, and char Using printf() in C
This program reads an integer, a float, and a character, then displays them with printf() using the appropriate format specifiers, demonstrating type conversion between int and float. C Program #include <stdio.h> int main() { int i; float f; char c; printf(“Enter an integer: “); scanf(“%d”, &i); printf(“Enter a float: “); scanf(“%f”, &f); printf(“Enter a character: … Read more