ভ্যারিয়েবল কি?

ভ্যরিয়েবল হল কোন ডাটার আধার। আমরা যদি পানি রাখতে চাই তাহলে সাধারণত বালতি ব্যবহার করি। তবে যদি বই রাখতে চাই তবে র‌্যাক ব্যবহার করি।কম্পিউটারের ডাটার প্রকার ভেদে এর রাখার পাত্রটি ও ভিন্নি হয়। আর এই ডাটা রাখার পাত্রকে ভ্যারিয়েবল বলে। নিচে রয়েকটি ভ্যারিয়েবল বলে।

$rana;

$rana_roni;

$rana_ronivaria;

প্রতিটি ভ্যারিয়েবল শেষে সেমিকোলন (;) করতে হবে।

প্রতিটি ভ্যারিয়েবল মান দেবার নিয়ম

 

$rana= “i am a Programming students”;

$$rana_roni= “56745”;

$rana_ronivaria= “i am a programming;”

 

(=) এটি হল এসাইমেন্ট অপারেটর।

ভ্যারিয়েবল লজিক্যাল ব্যবহার

$rana= “i am a Programming students”;

$$rana= “i am a programming”;

 

এখানে $rana এর মান i am a Programming students। তবে যদি i am a Programming students কে প্রিন্ট করতে বল হয় তবে i am a programming  এটি প্রিন্ট হবে। কারন $rana এর মান হিসাবে $$rana এ মান টি লোড হবে।

ভ্যারিয়েবল রেফারেন্স

$a= 70;

$b=$a*3;

Print $b=210;

$a= 100;

Print $b=210;

এখানে $a এর মান এর change হলেও $b এর মান এর কোন change হয় না।

$a= 70;

$b=$$a*3;

Print $b=210;

$a= 100;

Print $b=310;

এখানে $a এর মান এর change হলে $b এর মান এর কোন change হয় ।কারণ এখনে ($b=$$a*3; ) একটি $ বেশি ব্যারহার করা হয়েছে। যে করণে নতুন মান গ্রহন করেছে।

8 thoughts on “What is variable?

  1. Thank you a lot for providing individuals with a very marvellous chance to read articles and blog posts from this website. It is always so lovely plus stuffed with a great time for me personally and my office colleagues to visit the blog at minimum thrice in one week to study the newest tips you have got. And indeed, I’m usually happy for the amazing concepts you serve. Certain 2 facts in this posting are truly the most efficient I’ve ever had.

  2. I not to mention my friends were actually analyzing the great tricks located on your web site and so the sudden came up with a horrible suspicion I had not thanked the blog owner for those tips. My people ended up as a consequence very interested to see all of them and now have honestly been using these things. Thank you for indeed being so helpful as well as for selecting such incredibly good ideas most people are really eager to discover. My very own sincere regret for not expressing appreciation to earlier.

  3. I needed to post you that bit of remark to help say thank you again for the nice suggestions you have provided on this website. It was quite tremendously open-handed with you to allow without restraint all that a few individuals could have offered as an electronic book to make some profit for their own end, especially now that you could possibly have done it in the event you wanted. The points also acted like the good way to recognize that the rest have a similar interest just as my own to realize a whole lot more when considering this problem. I think there are some more pleasurable times up front for many who examine your site.

  4. I want to express my admiration for your kindness in support of those people who require help on the matter. Your personal dedication to getting the solution all through was exceedingly functional and have always allowed others just like me to arrive at their aims. Your own informative hints and tips signifies a great deal a person like me and substantially more to my peers. Thanks a ton; from all of us.

  5. I want to show my appreciation to the writer for rescuing me from this type of crisis. Right after surfing throughout the world-wide-web and meeting tips which were not powerful, I was thinking my life was done. Living without the presence of solutions to the problems you’ve fixed by way of your entire site is a crucial case, as well as the ones that could have adversely affected my entire career if I hadn’t noticed the website. Your actual know-how and kindness in maneuvering all the things was helpful. I don’t know what I would’ve done if I hadn’t come upon such a solution like this. I can at this point relish my future. Thanks a lot very much for this impressive and effective guide. I won’t think twice to suggest the sites to any individual who needs recommendations about this matter.

  6. I simply wanted to say thanks again. I’m not certain what I could possibly have followed in the absence of the tricks discussed by you over such subject matter. It was a very depressing situation in my view, but observing the specialized manner you handled that made me to weep with delight. Now i’m happy for your help and in addition have high hopes you comprehend what a powerful job you are always carrying out instructing the others via a site. I’m certain you’ve never come across any of us.

  7. I am just commenting to make you know what a fabulous encounter my child gained browsing your webblog. She noticed some details, which included what it is like to possess a very effective coaching mood to get many more very easily understand certain complex matters. You actually exceeded our own desires. Thanks for delivering the warm and friendly, safe, informative and as well as fun thoughts on your topic to Julie.

  8. I and my pals happened to be examining the good tips and hints from the website and the sudden got an awful feeling I had not thanked the web blog owner for those techniques. Most of the young men are already so very interested to read all of them and have absolutely been taking pleasure in them. Many thanks for being quite considerate and for finding such essential resources most people are really eager to learn about. My personal sincere regret for not expressing appreciation to you sooner.

Leave a Reply

Your email address will not be published. Required fields are marked *