Month: June 2022

Problem 1: Finding summation of two numbers

সমস্যা 1: দুটা সংখ্যাৰ সংক্ষিপ্তবিৱৰণ বিচাৰি উলিওৱা Let us start with a very simple program. Let us write a function to find the summation of two integers. Example 7.1 shows the code for this. আহক আমি এটা অতি সৰল কাৰ্যসূচীৰে আৰম্ভ কৰোঁ আহক। দুটা পূৰ্ণসংখ্যাৰ সাৰাংশ বিচাৰি বলৈ আমি এটা ফাংচন লিখোঁ আহক। উদাহৰণ 7.1-এ…

Read the full article

7.4 SOLVING PROBLEMS USING FUNCTION

7.4 ফাংচন ব্যৱহাৰ কৰি সমস্যা সমাধান কৰা In this section, we will write a number of C programs using functions. The problems we consider here to solve are not new. We have already solved similar problems in the previous chapters. Thus the solution strategy or the logic remains the same. What is new here is…

Read the full article

7.3 TYPES OF FUNCTION

7.3 প্ৰকাৰৰ ফাংচন There are two types of functions in C programming: চি প্ৰ’গ্ৰামিংত দুটা প্ৰকাৰৰ ফাংচন আছে: 1. Library functions: These are the functions that are defined in the C header files. We use these functions while writing our programs. We have already used printf() and scanf() in our programs. There are more such…

Read the full article

7.2 COMPONENTS OF FUNCTION

ফাংচনৰ 7.2 টা উপাদান There are three parts of a function in C. চি-ত এটা ফাংচনৰ তিনিটা অংশ আছে। 1. Function declaration: A function must be declared first before its use. This is to tell the compiler about the function name, function parameters, and return type. We gi ve an example of a function declaration…

Read the full article