1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#include <glib.h> gint main(gint argc,gchar *argv[]) { g_print("The length of gboolean is %dn",sizeof(gboolean)); g_print("The length of gpointer is %dn",sizeof(gpointer)); g_print("The length of gchar is %dn",sizeof(gchar)); g_print("The length of guchar is %dn",sizeof(guchar)); g_print("The length of gint is %dn",sizeof(gint)); g_print("The length of guint is %dn",sizeof(guint)); g_print("The length of gshort is %dn",sizeof(gshort)); g_print("The length of glong is %dn",sizeof(glong)); g_print("The length of gulong is %dn",sizeof(gulong)); g_print("The length of gint8 is %dn",sizeof(gint8)); g_print("The length of guint8 is %dn",sizeof(guint8)); g_print("The length of gint16 is %dn",sizeof(gint16)); g_print("The length of guint16 is %dn",sizeof(guint16)); g_print("The length of gint32 is %dn",sizeof(gint32)); g_print("The length of guint32 is %dn",sizeof(guint32)); g_print("The length of gint64 is %dn",sizeof(gint64)); g_print("The length of guint64 is %dn",sizeof(guint64)); g_print("The length of gfloat is %dn",sizeof(gfloat)); g_print("The length of gdouble is %dn",sizeof(gdouble)); g_print("The length of gsize is %dn",sizeof(gsize)); g_print("The length of gssize is %dn",sizeof(gssize)); return 0; }
|