hey there,
i need help on the following program.
I need a full explanation on what this code prints please
thanks in advanceCode:#include <stdio.h> #include <string.h> void f1(struct St1 *Ptr1); void f2(struct St1 Ptr1); struct St1 { char arr[15]; char *ptr; }; int main() { static char string[5][10] = {"Today","exam","is","very","fun"}; struct St1 st1Arr[3] = {{"Good", *string}, {"Luck", *(string+1)}, {"!!", &string[1][2]}}; struct St1* pSt1 = st1Arr; printf("%s\n", (*pSt1++).arr); printf("%s\n", (*++pSt1).ptr); }



2Likes
LinkBack URL
About LinkBacks


