This commit is contained in:
Emmanuel Srivastava
2024-12-02 13:59:14 +01:00
parent 851ce813f7
commit de45003c53
9 changed files with 232 additions and 0 deletions

15
DEV.1.1/CM1/ex2.c Normal file
View File

@@ -0,0 +1,15 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
short int a = 7;
unsigned char b = 77;
float c = 777;
long int d = 7777;
printf("%03hd\n", a);
printf("%c\n", b);
printf("%.0f\n", c);
printf("%lx\n", d);
return EXIT_SUCCESS;
}