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
Samenvatting

Summary C part 3 Structures of C

Beoordeling
-
Verkocht
-
Pagina's
24
Geüpload op
28-10-2024
Geschreven in
2024/2025

This document includes information related to Structure of c language.

Instelling
Vak

Voorbeeld van de inhoud

Chapter No: 2 C Part - II
Introductions to C Language


Question No Question
1 Explain structure of C Program
2 What is Token?
3 Define Term Identifier, Keywords & Constants
Mentioned
4 What is Tri-Graph character?
Topics5 in Explain different data types available in C.
6
Document Define the term precedence and associativity.
7 Explain different operators available in C.
8 Explain implicit type casting & explicit type casting.
9 What is the use of header file?
10 Explain printf() and scanf() function with example.
11 Explain getch(), getche() and getchar() with example.
12 Explain putchar() with example.


1.
Q Explain Structure of C Program.
Answer:
Basic structure of C program:
Documentation Section
Link Section
Definition Section
Global declaration Section
main()
{
Declaration Part;
Executable Part;
}
Subprogram Section
User defined Function
Various sections of C program are as under:-

, Documentation Section It contains set of comment lines giving
(Optional) the details of the program like name of
program, author name and date of
Link Section It contains the list of standard header files
which are needed to execute the program.
For example stdio.h and conio.h
Definition section It defines pre-processor directives
(Optional)
Global section Variables that are common for more than
(Optional) one function are declared in global
main() It is a function that must be present in
every C program. It is the first function
that is called up when the program is
executed. It is used with two curly
brackets to group the statements together
Subprograms The sub program section contains user
(Optional) defined functions.

Example:-
// a program to print hello world (Documentation Section)

#include <stdio.h>
Link Section
#include<conio.h>

void main()
{
Printf(“Hello
main Section
World”);
getch();
}

, 2.
Q What is Token?
Answer:

• The smallest individual unit of C program is known as C tokens.
• The C compiler breaks down the instructions into various components.
• A token is a source program text which compiler does not break into further
elements.
• This basic elements recognized by the compilers are known as “tokens”.
• These elements are further classified into keywords, identifiers, Constants,
Operators, Strings and Special Symbols.

Identifier
For Ex.(Variable name,
function name etc.)



Keywords
For Ex.(int, float,
while, etc.)


Constants
For Ex.(79, 3.14 etc.)
Toke
n
Operators
For Ex.(+, -, *, etc.)


String
For Ex.(“xyz”,
”VVP”, etc. )


Special Symbol
For Ex.(#, $, \, etc.)

Geschreven voor

Instelling
Middelbare school
School jaar
1

Documentinformatie

Geüpload op
28 oktober 2024
Aantal pagina's
24
Geschreven in
2024/2025
Type
SAMENVATTING

Onderwerpen

€7,47
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
Yourhelper11

Maak kennis met de verkoper

Seller avatar
Yourhelper11 Private university
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
1 jaar
Aantal volgers
0
Documenten
5
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