AIFA
C Editor
Coding Lab
C Home
Lesson
Courses
CHAPTER 21
C Structures
Write C code and run it directly in the browser.
▶ Run Code
↻ Reset
Clear Output
C Source Code
#include <stdio.h> struct Student { char name[30]; int age; }; int main() { struct Student s = {"Aman", 20}; printf("%s %d", s.name, s.age); return 0; }
Ready
Program Output
Output will appear here...
AIFA C Compiler
← Previous
📖 Lesson
All Chapters
Next →