#include <stdio.h> #include <string.h> struct abc{ int a; int b; int c; int d; }; void print_qwords(long long *ptr, int nqwords) { printf("Printing %d Qwords:\n", nqwords); while (nqwords) { printf("\tQword: %llx\n", *ptr); ptr++; nqwords--; } } int main() { int n = 1, m = 1; struct abc t; memset(&t,0x11,sizeof t); while (m <= n) { t.a= 0x22222222; t.b= 0x33333333; t.c= 0x44444444; t.d= 0x55555555; printf("Structure content- a:%x,b:%x,c:%x,d:%x\n", t.a,t.b,t.c,t.d); print_qwords((void *)&t, sizeof(t)/sizeof(long long *)); m++; } return (0); }