Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
College aantekeningen

Functions in C Language

Beoordeling
-
Verkocht
-
Pagina's
23
Geüpload op
18-07-2025
Geschreven in
2024/2025

I have written by my self only and teach in class. I written in very simple language, that's it is very easy to learn. I have written theory with syntax followed by examples. Try at least one, surely, you will understand easily.

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

Program:
Program is the set of instructions which is run by the computer to perform specific task.
The task of developing program is called programming.

Problem Solving Technique:
Sometimes it is not sufficient just to cope with problems. We have to solve that
problems. Most people are involving to solve the problem. These problem are occur
while performing small task or making small decision. So, Here are the some basic
steps to solve the problems

Step 1: Identify and Define Problem

Explain you problem clearly as possible as you can.

Step 2: Generate Possible Solutions

 List out all the solution that you find. Don’t focus on the quality of the solution

 Generate the maximum number of solution as you can without considering the quality of
the solution

Step 3: Evaluate Alternatives

After generating the maximum solution, Remove the undesired solutions.

Step 4: Decide a Solution

After filtering all the solution, you have the best solution only. Then choose on of the
best solution and make a decision to make it as a perfect solution.

Step 5: Implement a Solution:

After getting the best solution, Implement that solution to solve a problem.

Step 6: Evaluate the result

After implementing a best solution, Evaluate how much you solution solve the problem.
If your solution will not solve the problem then you can again start with Step 2.

,Algorithm:
Algorithm is the set of rules that define how particular problem can be solved in finite
number of steps. Any good algorithm must have following characteristics

1. Input: Specify and require input
2. Output: Solution of any problem
3. Definite: Solution must be clearly defined
4. Effective
5. Finite: Steps must be finite
6. Correct: Correct output must be generated

Advantages of Algorithms:

1. It is the way to sole a problem step-wise so it is easy to understand.
2. It uses definite procedure.
3. It is not dependent with any programming language.
4. Each step has it own meaning so it is easy to debug

Disadvantage of Algorithms:

1. It is time consuming
2. Difficult to show branching and looping statement
3. Large problems are difficult to implement




Flowchart:
The solution of any problem in picture form is called flowchart. It is the one of the most
important technique to depict an algorithm.

Advantage of Flowchart:

1. Easier to understand
2. Helps to understand logic of problem
3. Easy to draw flowchart in any software like MS-Word
4. Complex problem can be represent using less symbols
5. It is the way to documenting any problem
6. Helps in debugging process

Disadvantage of Flowchart:

1. For any change, Flowchart have to redrawn

, 2. Showing many looping and branching become complex
3. Modification of flowchart is time consuming




Symbol Used in Flowchart:




Example: Algorithm and Flowchart to check odd or even

Algorithm:

Step 1: Start
Step 2: Declare a variable x
Step 3: Take a input from user and store in x
Step 4: IF x % 2 == 0 THEN
PRINT Even
ELSE
PRINT Odd
Step 5: End

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
18 juli 2025
Aantal pagina's
23
Geschreven in
2024/2025
Type
College aantekeningen
Docent(en)
Self
Bevat
Alle colleges

Onderwerpen

€4,20
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
NaseeMirza

Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
NaseeMirza Freelancer
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
9 maanden
Aantal volgers
0
Documenten
2
Laatst verkocht
-

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen