Hello
The output of code1 gives any garbage value whereas output of code2 gives run time error.Why is this so?why both of the codes not showing an error because there are no arguments for %d & %f.
Code:/*CODE1*/ #include<stdio.h> #include<conio.h> int main(void) { clrscr(); printf("%d"); getch(); return 0; }ThanksCode:/*CODE2*/ #include<stdio.h> #include<conio.h> int main(void) { clrscr(); printf("%f"); getch(); return 0; }