What are the difference between Initialization and Assignment wrt (1) compilation and runtime (2) Global scope and Local scope (3) Syntax style in C
Advertisements Here is Define.c #include "Define.h" // statement1 Format date_format = { "YYMMDD", "%02u%02u%02u", 6, 3 }; // Either above statement 1 or below statement2 // statement2 Format date_format; strcpy(date_format.format, "YYMMDD"); // line2 strcpy(date_format.scanformat, "%02u%02u%02u"); // line3 date_format.scansize = 3; // line4 date_format.printsize = 6; // line5 Here is Define.h #ifndef _DEFINE_H #define _DEFINE_H typedef… Read More What are the difference between Initialization and Assignment wrt (1) compilation and runtime (2) Global scope and Local scope (3) Syntax style in C