SlideShare a Scribd company logo
2. Consider the following C program:
#define M ...
#define N ...
int X[N];
for (int i=0; i
Solution
Directives are special instructions directed to the preprocessor (preprocessor directive) or to the
compiler (compiler directive) on how it need to technique component or all your supply code or
set some flags at the very last item and are used to make writing source code less difficult (extra
transportable as an instance) and to make the supply code greater understandable. Directives are
dealt with by means of the preprocessor, which is either a separate program invoked through the
compiler or part of the compiler itself.
#consist of[edit]
C has a few capabilities as a part of the language and a few others as part of a wellknown
library, that's a repository of code that is to be had alongside every trendy-conformant C
compiler. when the C compiler compiles your program it normally also hyperlinks it with the
usual C library. as an example, on encountering a #consist of directive, it replaces the directive
with the contents of the stdio.h header file.
when you operate capabilities from the library, C calls for you to declare what you will be the
usage of. the primary line inside the application is a preprocessing directive which need to appear
to be this:
#encompass
The above line reasons the C declarations which are in the stdio.h header to be blanketed to be
used in your application. typically that is carried out by means of just inserting into your program
the contents of a header file referred to as stdio.h, positioned in a gadget-dependent place. The
location of such files can be described for your compiler's documentation. A listing of trendy C
header documents is listed below inside the Headers table.
The stdio.h header consists of diverse declarations for input/output (I/O) using an abstraction of
I/O mechanisms known as streams. as an example there may be an output stream item referred to
as stdout that is used to output text to the same old output, which typically shows the text on the
laptop screen.
If the use of angle brackets like the instance above, the preprocessor is instructed to search for
the include document alongside the development surroundings path for the same old includes.

More Related Content

PPTX
C Programming UNIT 1.pptx
PPTX
5.Hello World program Explanation. ||C Programming tutorial.
PDF
ANSI C Macros
PDF
C class basic programming 1 PPT mayanka (1).pdf
DOCX
Whats a header- Whats a source-code file- Discuss the purpose of each-.docx
PDF
6 preprocessor macro header
PPTX
C language header files
PPTX
C++ AND CATEGORIES OF SOFTWARE
C Programming UNIT 1.pptx
5.Hello World program Explanation. ||C Programming tutorial.
ANSI C Macros
C class basic programming 1 PPT mayanka (1).pdf
Whats a header- Whats a source-code file- Discuss the purpose of each-.docx
6 preprocessor macro header
C language header files
C++ AND CATEGORIES OF SOFTWARE

Similar to 2. Consider the following C program #define M ... #define N ....pdf (20)

PPTX
Unit-2.pptx
PPTX
U get to UnderstandingBasicStructureC.pptx
PDF
Introduction To C++ programming and its basic concepts
PDF
Chapter 13.1.4
PDF
CS8251_QB_answers.pdf
PDF
Input and output in c
PDF
Introduction of c language
PPTX
Functions and Header files ver very useful
PPTX
C programming presentation(final)
PPTX
Rasperry pi Part 8
DOCX
C tutorials
PPTX
INTRODUCTION TO C LANGUAGE.pptx
PDF
Introduction To Programming With C 1st Edition Nhce
PPTX
Introduction to cpp language and all the required information relating to it
PPTX
STRUCTURED PROGRAMMING (USING C PROGRAMMING).pptx
PDF
67404923-C-Programming-Tutorials-Doc.pdf
PPTX
CHAPTER 3
PDF
Unit 2 introduction to c programming
PDF
Learning the C Language
Unit-2.pptx
U get to UnderstandingBasicStructureC.pptx
Introduction To C++ programming and its basic concepts
Chapter 13.1.4
CS8251_QB_answers.pdf
Input and output in c
Introduction of c language
Functions and Header files ver very useful
C programming presentation(final)
Rasperry pi Part 8
C tutorials
INTRODUCTION TO C LANGUAGE.pptx
Introduction To Programming With C 1st Edition Nhce
Introduction to cpp language and all the required information relating to it
STRUCTURED PROGRAMMING (USING C PROGRAMMING).pptx
67404923-C-Programming-Tutorials-Doc.pdf
CHAPTER 3
Unit 2 introduction to c programming
Learning the C Language
Ad

More from SIGMATAX1 (20)

PDF
Consider a binary search tree T with nodes containing the four fields.pdf
PDF
Based on the articleWhy It Is Time to Look Beyond Algal Genes in P.pdf
PDF
Comparecontrast the following classes of hormones by identifying thr.pdf
PDF
Why does the incidence of acute disease decrease with ageSoluti.pdf
PDF
White eye color in Drosophila was discovered to be sex linked by Tho.pdf
PDF
Which of the following protons would you NOT expect to find embedded .pdf
PDF
Which of these characteristics distinguishes angiosperms from other .pdf
PDF
Which of the following is MOST responsible for maintaining the doubl.pdf
PDF
What are the role of environmental factors on transpiration and h.pdf
PDF
What will be quantization step size in numbers and in voltage for th.pdf
PDF
What is the need for a shadow page table (One or two brief sentences.pdf
PDF
What step of protein synthesis is shown in the figure elongation st.pdf
PDF
Water is forced through a contraction causing low pressure. The wat.pdf
PDF
Using a PIC 18 Write a time overflow interrupt routine that detects .pdf
PDF
The three types of mixtures are and The weak bond forming a bridge .pdf
PDF
Some commercial airplanes recirculate approximately 50 of the cabin .pdf
PDF
Solve for 02 sin 2+sin 5=0. Separate your answers with commas.pdf
PDF
Required 1. Briefly describe different computer controls available .pdf
PDF
a. What is Snort [1]b. According to “Snort Users Manual” (downloa.pdf
PDF
Proponents of decentralized forms of socialism usually supportA co.pdf
Consider a binary search tree T with nodes containing the four fields.pdf
Based on the articleWhy It Is Time to Look Beyond Algal Genes in P.pdf
Comparecontrast the following classes of hormones by identifying thr.pdf
Why does the incidence of acute disease decrease with ageSoluti.pdf
White eye color in Drosophila was discovered to be sex linked by Tho.pdf
Which of the following protons would you NOT expect to find embedded .pdf
Which of these characteristics distinguishes angiosperms from other .pdf
Which of the following is MOST responsible for maintaining the doubl.pdf
What are the role of environmental factors on transpiration and h.pdf
What will be quantization step size in numbers and in voltage for th.pdf
What is the need for a shadow page table (One or two brief sentences.pdf
What step of protein synthesis is shown in the figure elongation st.pdf
Water is forced through a contraction causing low pressure. The wat.pdf
Using a PIC 18 Write a time overflow interrupt routine that detects .pdf
The three types of mixtures are and The weak bond forming a bridge .pdf
Some commercial airplanes recirculate approximately 50 of the cabin .pdf
Solve for 02 sin 2+sin 5=0. Separate your answers with commas.pdf
Required 1. Briefly describe different computer controls available .pdf
a. What is Snort [1]b. According to “Snort Users Manual” (downloa.pdf
Proponents of decentralized forms of socialism usually supportA co.pdf
Ad

Recently uploaded (20)

PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Basic Mud Logging Guide for educational purpose
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
Cell Structure & Organelles in detailed.
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Institutional Correction lecture only . . .
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPH.pptx obstetrics and gynecology in nursing
Module 4: Burden of Disease Tutorial Slides S2 2025
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Basic Mud Logging Guide for educational purpose
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Microbial disease of the cardiovascular and lymphatic systems
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
GDM (1) (1).pptx small presentation for students
Supply Chain Operations Speaking Notes -ICLT Program
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Insiders guide to clinical Medicine.pdf
Cell Types and Its function , kingdom of life
Cell Structure & Organelles in detailed.
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Institutional Correction lecture only . . .
2.FourierTransform-ShortQuestionswithAnswers.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...

2. Consider the following C program #define M ... #define N ....pdf

  • 1. 2. Consider the following C program: #define M ... #define N ... int X[N]; for (int i=0; i Solution Directives are special instructions directed to the preprocessor (preprocessor directive) or to the compiler (compiler directive) on how it need to technique component or all your supply code or set some flags at the very last item and are used to make writing source code less difficult (extra transportable as an instance) and to make the supply code greater understandable. Directives are dealt with by means of the preprocessor, which is either a separate program invoked through the compiler or part of the compiler itself. #consist of[edit] C has a few capabilities as a part of the language and a few others as part of a wellknown library, that's a repository of code that is to be had alongside every trendy-conformant C compiler. when the C compiler compiles your program it normally also hyperlinks it with the usual C library. as an example, on encountering a #consist of directive, it replaces the directive with the contents of the stdio.h header file. when you operate capabilities from the library, C calls for you to declare what you will be the usage of. the primary line inside the application is a preprocessing directive which need to appear to be this: #encompass The above line reasons the C declarations which are in the stdio.h header to be blanketed to be used in your application. typically that is carried out by means of just inserting into your program the contents of a header file referred to as stdio.h, positioned in a gadget-dependent place. The location of such files can be described for your compiler's documentation. A listing of trendy C header documents is listed below inside the Headers table. The stdio.h header consists of diverse declarations for input/output (I/O) using an abstraction of I/O mechanisms known as streams. as an example there may be an output stream item referred to as stdout that is used to output text to the same old output, which typically shows the text on the laptop screen. If the use of angle brackets like the instance above, the preprocessor is instructed to search for the include document alongside the development surroundings path for the same old includes.