Home » C Programming » Structures, Unions, Enums

What will be the output of the program? #include<stdio.h> struct course { int courseno; char coursename[25]; }; int main() { struct course c[] = { {102, "Java"}, {103, "PHP"}, {104, "DotNet"} }; printf("%d ", c[1].courseno); printf("%s\n", (*(c+2)).coursename); return 0; }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!