C Syntax

Example :

Example explained:

  • Line 1: #include <stdio.h> is a header file library that lets us work with input and output functions.

( #include <stdio.h> একটি হেডার ফাইল লাইব্রেরি যা আমাদের ইনপুট এবং আউটপুট ফাংশনগুলির সাথে কাজ করতে দেয় )

  • Line 2: A blank line. C ignores white space. But we use it to make the code more readable. ( একটি ফাঁকা লাইন। সি সাদা স্থান উপেক্ষা করে। কিন্তু আমরা কোডটিকে আরও পঠনযোগ্য করতে এটি ব্যবহার করি। )

  • Line 3: Another thing that always appear in a C program, is main(). This is called a function. Any code inside its curly brackets { } will be executed. ( আরেকটি জিনিস যা সবসময় একটি সি প্রোগ্রামে উপস্থিত হয়, তা হল main() ফাংশন বলা হয়। এর কোঁকড়া বন্ধনীর মধ্যে যেকোন কোড { } কার্যকর করা হবে। )

  • Line 5: return 0 ends the main() function.( return 0 main() ফাংশনের কাজ শেষ করে। )

  • Line 6: Do not forget to add the closing curly bracket } to actually end the main function.(মূল ফাংশনটি শেষ করতে closing curly bracket যোগ করতে ভুলবেন না। )