9.3 OPERATORS IN C

9.3 অপাৰেটৰ আই এন চি

We have learned declaring variables, taking in put in a variable from the keybored and to print its value. we now learn applying operations on the variables. C supports a large number of operations. The following stement in C indicates an operation.

আমি চলক ঘোষণা কৰা, কীবিৰৰ পৰা এটা চলক লগাই আৰু ইয়াৰ মূল্য প্ৰিণ্ট কৰিবলৈ শিকিছোঁ। আমি এতিয়া চলকবোৰত অপাৰেচন প্ৰয়োগ কৰিবলৈ শিকিম। চি-য়ে বৃহৎ সংখ্যক অপাৰেচন সমৰ্থন কৰে। চি-ত নিম্নলিখিত ষ্টেমেণ্টে এটা অস্ত্ৰোপচাৰ সূচায়।

In the above statement, x and y are variables 2 is a constant Both y and 2 are called operands and + is called the operator. The combination of variables, constants and operands here formed an expression in C.

ওপৰোক্ত বিবৃতিত, এক্স আৰু ৱাই চলক 2 হৈছে এক ধ্ৰুৱক ৱাই আৰু 2 দুয়োটাকে অপাৰেণ্ড বুলি কোৱা হয় আৰু + ক অপাৰেটৰ বুলি কোৱা হয়। ইয়াত চলক, ধ্ৰুৱক আৰু অপাৰেণ্ডৰ সংমিশ্ৰণে চি-ত এক অভিব্যক্তি গঠন কৰিছিল।

The operator that requires two operands is called a binary operator. The that requires only one operand is called a unary operator.

দুটা অপাৰেণ্ডৰ প্ৰয়োজন হোৱা অপাৰেটৰটোক বাইনাৰী অপাৰেটৰ বুলি কোৱা হয়। যাৰ বাবে কেৱল এটা অপাৰেণ্ডৰ প্ৰয়োজন হয় ইয়াক অপৰিচালক বুলি কোৱা হয়।

The above statement uses another operator called assignment (=). Assignment operator is used to assign value to a variable.

ওপৰোক্ত বিবৃতিটোত এছাইনমেণ্ট (=) নামৰ আন এটা অপাৰেটৰ ব্যৱহাৰ কৰা হৈছে। এটা চলকক মূল্য আৱণ্টন কৰিবলৈ এছাইনমেণ্ট অপাৰেটৰ ব্যৱহাৰ কৰা হয়।