C Programming Garbage Collection examples
#include<stdio.h>
#include<conio.h>
main()
{
printf("%d",printf("CQUESTIONBANK"));
getch();
}
OUTPUT: Check the output on your compiler.
So, there are many garbage collection program in C and C++ programming language.
Try out one more program :-
main()
{
short int a=5;
printf("%d"+1,a);
getch();
}
OUTPUT: On Terbo 6, 51, d, compiler error etc. and on developer only d will be printed. Try on your compiler.
#include<conio.h>
main()
{
printf("%d",printf("CQUESTIONBANK"));
getch();
}
OUTPUT: Check the output on your compiler.
So, there are many garbage collection program in C and C++ programming language.
Try out one more program :-
main()
{
short int a=5;
printf("%d"+1,a);
getch();
}
OUTPUT: On Terbo 6, 51, d, compiler error etc. and on developer only d will be printed. Try on your compiler.
Comments
Post a Comment