Getting Warning When Using SizeOf [duplicate]
问题 This question already has answers here : '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] [duplicate] (3 answers) Closed 7 years ago . I am getting a warning warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat] I am writing a very basic program which gives the size of the data type but in the Linux environment I am getting this warning whereas in Visual Studio, the program works without any