C প্রোগ্রাম এর প্রয়োজনীয় উপকরন

Submitted by tushar pramanick on Mon, 01/02/2012 - 14:27

C Programs এর প্রয়োজনীয় উপকরন

এই অধ্যায়ে আমরা শিখবো সি প্রোগ্রামিং এর জন্য কিছু প্রয়োজনীয় জিনিস । যেমন

  • Constants and variables
  • Expressions
  • Statements
  • Statement blocks
  • C function types and names
  • Arguments to functions
  • The body of a function
  • Function calls

The Basics of the C Program

 ইট দিয়ে যেমন ভাবে বিল্ডিং তৈরি করা হয় তেমনভাবে সি প্রোগ্রামিং লিখতে গেলে কিছু প্রয়োজনীয়  জিনিসের দরকার হয় যেমন
 expressions, statements, statement blocks, and function blocks ইত্যাদি.

এই সমস্ত জিনিস গুলো পরে আলোচনা করা হবে কিন্তু প্রথমে জানতে হবে দুটি ছোট জিনিস যা অত্যন্ত প্রয়োজনীয় । সেগুলি হল  constant এবং variables.

 

Summary

In this Chapter you've learned the following:

  • A constant in C is a value that never changes. A variable, on the other hand, can present different values.
  • A combination of constants, variables, and operators is called an expression in the C language. An expression is used to denote different computations.
  • The arithmetic operators include +, -, *, /, and %.
  • A statement consists of a complete expression suffixed with a semicolon.
  • The C compiler treats a statement block as a single statement, although the statement block may contain more than one statement.
  • The function type of a function determines the type of the return value made by the function.
  • You have to follow certain rules to make a valid function name.
  • An argument contains information that you want to pass to a function. An argument list contains two or more arguments that are separated by commas.
  • The opening brace ({) and closing brace (}) are used to mark the start and end of a C function.
  • A function body contains variable declarations and statements. Usually, a function should accomplish just one task.

In the next lesson you'll learn more about data types in the C language.

 

Comments

Related Items

The while Loop

The while Loop

The while statement is also used for looping. Unlike the situation with the for statement, there is only one expression field in the while statement.

The general form of the while statement is

while (expression) {

Question and Answer

Question and Answer

    Q How does a for loop work?

Exercises : Answer the following Question

To help you solidify your understanding of this hour's lesson, you are encouraged to try to answer the quiz questions and finish the exercises provided in the Workshop before you move to the next lesson.

 

Working with the Cast Operator

Playing with the Cast Operator

In C, you can convert one data type to a different one by prefixing the cast operator to the operand.

The general form of the cast operator is

(data-type)x

Question and Answer

Question and Answer

    Q What is the difference between the pre-increment operator and the post-increment operator?