open the selfcopy.c file inside its code---selfcopy.c---#include #include#include main() { FILE *fopen(), *fp; int c ; printf("THE OUTPUT IS THE PROGRAM ITSELFn"); fp = fopen("selfcopy.c","r" ); c= getc( fp ) ; while ( c != EOF ) { putchar( c ); c = getc ( fp ); } fclose( fp ); }
Whats is structure padding?Say a given structure Struct{ int a; char c; float d; } the size of structure is 7 here. But structure padding is done what will be the size of the struct?Will it change and how?How to avoid this?is it necessary?