Different data types


/*Different data types*/

#include<stdio.h>

main()

{

int a;

float b;

char c;

clrscr();

a=125, b=5.25, c=’Z’;

printf(“value of a is=%d”,a);

printf(“\nvalue of b is=%f”,b);

printf(“\nvalue of c is=%c”,c);

getch();

}

Output:

Related Posts

Comments are closed.