Get fully solved assignment. Buy
online from website
online store
or
plz drop a mail with your sub
code
we will revert you within 2-3
hour or immediate
Charges rs
125/subject
If urgent then call us on 08791490301
STUDENT NAME:-
ROLL NO:-
ASSIGNMENT DRIVE - SPRING –
2017
PROGRAM - MASTER OF
COMPUTER APPLICATION
SEMESTER - I
SUBJECT CODE & NAME -
MCA112 - Programming In C
BK ID B1639 NUMBER OF
ASSIGNMNETS, CREDITS & MARKS 2, 4 Credits, 30 marks each
Assignment
Set -1 Questions
Q1 a) What is a structure?
How does a structure differ from an array?
b) How is a structure type pointer variable declared? 6+4=10
Answer:-
a)
What is a structure?
An array is a data structure whose
elements are all of the same data type. We now turn our attention to the
structure, which is a data structure whose individual elements can differ in
type. Thus, a single structure might contain integer elements, floating-point
elements and character elements. Pointers, arrays and other structures can also
be included as
Q2
a) Explain about the linked
list.
b) Write a C program for creating and printing
the elements of the linked list. 4+6 =10
Answer:-
a)
Linked list
When dealing with many problems we need a
dynamic list, dynamic in the sense that the size requirement need not be known
at compile time. Thus, the list may grow or shrink during runtime. A linked
list is a data structure that is used to model such a dynamic list of data
items, so the study of the linked lists as one of the data structures is important.
An array is
Q3 a) Write short note on
command line arguments.
b) Write a C program to
illustrate the use of command line arguments.
4+6=10
Answer:-
a)
Command line argument is
a parameter supplied to a program when the program is invoked.
(We should probably admit that command
line user interfaces are a bit old fashioned, and currently somewhat out of
favor. If you've used Unix or MSDOS, you know what a command line is, but if
your experience is
Assignment
Set -2 Questions
Q1 Explain about any five
commonly used input/output functions in C. 10
Answer:-
getchar(), putchar(), scanf(), printf(),
gets() and puts() are the commonly used input/output functions in C.
These functions are used to transfer of
information between the computer and the standard input/output devices.
getchar() and putchar
Q2 a) What is the
difference between function declaration and function definition.
b) Write a recursive
function to find the factorial of a given positive integer. 4+6 =10
Answer:-
a) Function declaration is a direction to
the compiler that what type of data is returned by the function, the function
name and about the arguments where as the function definition is actually
writing the body of the function along with the function header.
b)
Recursive
Q3
a) Explain the basics of
Pointers.
b) What are the
Similarities between Pointers and one dimensional arrays. 4+6 =10
Answer:-
a)
Basics of Pointers:-
A pointer is a variable which contains
the address in memory of another variable. We can have a pointer to any
variable type. Before studying pointers, you should mind certain symbols that
are frequently used in implementing the pointers. We use the symbol & that
gives the “address of a variable” and is known as the unary or monadic
operator. We use other symbol * that gives the “contents of an object pointed
to by a pointer” and we call it
Get fully solved assignment. Buy
online from website
online store
or
plz drop a mail with your sub
code
we will revert you within 2-3
hour or immediate
Charges rs
125/subject
If urgent then call us on 08791490301
No comments:
Post a Comment