#include <stdio.h> void main() { printf("Hello, World!"); }
- line 1 में जो #include लिखा गया है ये preprocessor directive कहलाता है। stdio.h एक header file जिसे प्रत्येक c program में include करना पड़ता है।
- line 3 में int, main function का return type है। function के बारे हम बाद में detail में पड़ेंगे (Function chapter में)।
- line 4 & line 7 जो brackets है इनको curly braces या curly bracket कहते है। जो किसी ब्लॉक को denote करते है। जहा पर function के बाद लगाए गए है, इसलिए फंक्शन का block या body है।
- line 5 में printf भी एक function जो console पर output प्रदर्शित करने के लिए use होता है, जो भी “double quotes” में लिखा है वह output आएगा। भी hello world लिखा है तो hello world आएगा।