Pointers এর ব্যবহার ও তার প্রয়োজনীতা

Submitted by administrator on Mon, 01/02/2012 - 15:48

Chapter 11 - An Introduction to Pointers

 

You've learned about many important C data types, operators, functions, and loops in the last 10 hours. In this lesson you'll learn about one of the most important and powerful features in C: pointers. The topics covered in this chapter are

    Pointer variables
    Memory addresses
    The concept of indirection
    Declaring a pointer
    The address-of operator
    The dereference operator




Summary

In this lesson you've learned the following:

  •     A pointer is a variable whose value is used to point to another variable.
  •     A variable declared in C has two values: the left value and the right value.
  •     The left value of a variable is the address; the right value is the content of the variable.
  •     The address-of operator (&) can be used to obtain the left value (address) of a variable.
  •     The asterisk (*) in a pointer declaration tells the compiler that the variable is a pointer variable.
  •     The dereference operator (*) is a unary operator; as such, it requires only one operand.
  •     The *ptr_name expression returns the value pointed to by the pointer variable ptr_name, where ptr_name can be any valid variable name in C.
  •     If the right value of a pointer variable is 0, the pointer is a null pointer. A null pointer cannot point to valid data.
  •     You can update the value of a variable referred by a pointer variable.
  •     Several pointers can point to the same location of a variable in the memory.


 

Related Items

C প্রোগ্রাম এর ডেটা টাইপ এবং নামকরণ করার পদ্ধতি

ক্লাস 4: C ল্যাঙ্গুয়েজ এর ডেটা টাইপ এবং নেম

CLASS 4: Data Types and Names in C

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

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

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

সহজ সরল প্রথম C প্রোগ্রাম টি লিখতে শিখুন

আমরা জানি C একটি উচ্চ-স্তরের প্রোগ্রামিং ভাষা এবং C প্রোগ্রামগুলি বাইনারি কোডে অনুবাদ করতে C কম্পাইলার (Compiler) দরকার হয় । বাইনারি কোড কম্পিউটার বুঝতে পারে এবং এক্সিকিউট করতে পারে। C প্রোগ্রাম লিখতে যে বেসিক জিনিসগুলি জানতে হবে

C প্রোগ্রামিং কিভাবে শুরু করবে ?

C একটি প্রোগ্রামিং ল্যাঙ্গুয়েজ । C ল্যাঙ্গুয়েজ প্রথম তৈরি করেন ডেনিস রিচি (Dennis Ritchie) 1972 সালে AT&T Bell ল্যাবে । ডেনিস রিচি এর নাম দেন ল্যাঙ্গুয়েজ C । কারন এর আগে B বলে আগে থেকেই আর একটি প্ররগ্রামিং ল্যাঙ্গুয়েজ ছিল।

C programming in Bengali

C প্রোগ্রামিং ল্যাঙ্গুয়েজ শেখার জন্য আগে থেকে কোনও প্রোগ্রামিং ল্যাঙ্গুয়েজ জানার প্রয়োজন নেই, যদিও কম্পিউটারের সম্পর্কে কিছু জ্ঞান থাকার দরকার । C একটি শক্তিশালী সাধারণ উদ্দেশ্যে ব্যাবহৃত প্রোগ্রামিং ল্যাঙ্গুয়েজ। C প্রোগ্রামিং ল্যাঙ্গুয়েজ দিয়ে অপারেটিং সিস্টেম, ডাটাবেস, ..