TutorialsBazaar

← Back

Learn C++ Programming

Module 3/15

Basic Syntax

Module 3 of 15

A C++ program starts with #include and uses main() function. The cout statement is used for output and cin for input. Execution starts from main().

C++ प्रोग्राम #include से शुरू होता है और main() function से execution शुरू होता है। cout और cin का उपयोग input-output के लिए होता है।

#include <stdio.h>

int main() {
    printf("Welcome to Basic Syntax");
    return 0;
}