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 and rs 500/semester only.
if urgent then call us
on 08791490301, 08273413412
Winter 2014
PROGRAM: MCA (REVISED FALL 2012)
SEMESTER: FIRST
SUBJECT CODE & NAME: MCA1020- PROGRAMMING IN C
CREDIT: 4
BK ID: B1639
MAX. MARKS: 60
Q.1:
Define operators. Briefly explain about any four Operators in C.
ANS:
C supports a rich set of
operators. An operator is a symbol that tells the computer to perform certain
mathematical or logical manipulations. Operators are used in programs to manipulate
data and variables.
Q.2:
Differentiate between formal parameters and actual parameters with example
ANS:
Parameters (also called formal parameters)
or arguments are the special identifiers through whichinformation
can be passed to the function. A function has a body containingthe actual instructions
Q.3:
Describe about static and external variables.
ANS:
Static Variables
Static variables are defined
within individual functions and therefore have the same scope as automatic
Q.4: Distinguish between pass by
value and pass by reference with the help of an example.
ANS:
Pass
by value:
Pass by value may be very
inefficient if the structure is large (i.e., has many members). They have
Q.5:
Define macro. How we can declare a macro statement? Explain with an example.
ANS:
A preprocessor line of the form
#define name text
Defines a macro with the given name, having as its value the given replacement text. After that (for the rest of
the current source file), wherever the preprocessor sees that name, it will
replace it with the
Q.6:What is the use of fopen ()
and fclose () function? List and explain different modes for opening a file.
ANS:
fopen():
To open the file input.dat for
reading you might call
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 and rs 500/semester only.
if urgent then call us
on 08791490301, 08273413412
No comments:
Post a Comment