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 if-else Statement

The if-else Statement

The if statement

The if statement

If life were a straight line, it would be very boring. The same thing is true for programming. It would be too dull if the statements in your program could only be executed in the order in which they appear.

Mathematical Functions in C

Mathematical Functions in C

Basically, the math functions provided by the C language can be classified into three groups:

    Trigonometric and hyperbolic functions, such as acos(), cos(), and cosh().

Changing Data Sizes

Changing Data Sizes

Enabling or Disabling the Sign Bit

Enabling or Disabling the Sign Bit

As you know, it's very easy to express a negative number in decimal. All you need to do is put a minus sign in front of the absolute value of the number. But how does the computer represent a negative number in the binary format?