DCA6102 – PROGRAMMING IN C

190.00

Description

SESSION SEPTEMBER 2022
PROGRAM BACHELOR OF COMPUTER APPLICATIONS (MCA)
SEMESTER I
COURSE CODE & NAME DCA6102 – PROGRAMMING IN C
Set – I
Questions
1. Describe various features of the C programming language.
Ans: C is characterized by the ability to write very concise source programs, due in part to
the large number of operators included within the language. It has a relatively small
instruction set, though actual implementations include extensive library functions which
enhance the basic instructions.
The language encourages users to write additional library functions of their own. Thus, the
Buy Complete assignment from us
Price – 190/ assignment
MUJ Manipal University Complete
SolvedAssignments session Jul/Aug 2022
buy cheap assignment help online from us easily
we are here to help you with the best and cheap help
Contact No – 8791514139 (WhatsApp)
OR
Mail us- [email protected]
Our website – www.assignmentsupport.in
2. Explain various branching statements in C with examples.
Ans: A branch is an instruction in a computer program that can cause a computer to begin
executing a different instruction sequence and thus deviate from its default behaviour of
executing instructions in order. Common branching statements include break, continue,
return
3. Define a function. List and explain the categories of user-defined functions.
Ans: A function is a self-contained program segment that carries out some specific, welldefined
task. Every C program contains one or more functions. One of these functions must
be called main. Program execution will always begin by carrying out the instructions in main.
Additional functions will be subordinate to main, and perhaps to one another.
There can be 4 different types of user-defined functions, they are:
1. Function with no arguments and no return value
Set – II
4. Define an array. How to initialise one-dimensional array? Explain with suitable
examples.
Ans: An array is defined as an ordered set of similar data items. All the data items of an array
are stored in consecutive memory locations in RAM. The elements of an array are of same
data type and each item can be accessed using the same name.
1D ARRAY
A list of items can be given one variable name using only one subscript and such a variable is
5(a). Define Structure and write the general syntax for declaring and accessing
members.
Ans: A Structure definition creates a format that may be used to declare structure variables.
For e.g., Consider a book database consisting of book name, author, number of pages and
price.
struct book_bank
{
char title[20];
(b). List out the differences between unions and structures.
Ans:
Parameter Structure Union
Keyword A user can deploy the
keyword struct to define a
Structure.
A user can deploy the
keyword union to define a Union.
Internal
Implementation
The implementation of Structure
in C occurs internally- because it
contains separate memory
locations allotted to every input
member.
In the case of a Union, the memory
allocation occurs for only one member
with the largest size among all the
input variables. It shares the same
location among all these
members/objects.
6. What is a pre-processor directive? Explain define, and #include pre-processor
directives.
Ans: Preprocessor directives are lines of the source file where the first non-whitespace
character is #, which distinguishes them from other lines of text. The effect of each
preprocessor directive is a change to the text and the result is a transformation of the text that
does not contain the

Reviews

There are no reviews yet.

Be the first to review “DCA6102 – PROGRAMMING IN C”

Your email address will not be published. Required fields are marked *