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 Basics of Disk File I/O

The Basics of Disk File I/O

Now let's focus on how to open and close a disk data file and how to interpret error messages returned by I/O functions.

Files Versus Streams

Files Versus Streams

Exercises : Answer the following Question

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

Question and Answer

    Q What are the differences between a union and a structure?

Making Structures Flexible

Making Structures Flexible

The second application of unions is to nest a union inside a structure so that the structure can hold different types of values.