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, 08273413412
PROGRAM
BACHELOR
OF COMPUTER APPLICATION
SEMESTER
FIRST
SUBJECT
CODE & NAME
BCA112
- PROGRAMMING IN C
BK
ID
B1639
Note:
Answer all questions. Kindly note that answers for 10 marks questions should be
approximately of 400 words.
Qus:1
What is Character constants in C programming language? Illustrate it with one
example.
Answer:
Constants
in C refer to fixed values that do not change during the execution of a
program. C supports several types of constants as illustrated in Fig
Integer constants
An integer constant refers
to a sequence of digits. There are three types of integers, namely decimal,
Qus:2
a) What is a static variable?
b)
Illustrate the use of static variable in C program to generate Fibonacci
numbers.
Answer:Static
Variables
Static variables are defined within individual
functions and therefore have the same scope as automatic variables, i.e. they
are local to the functions in which they are declared. Unlike automatic
variables, however, static variables retain their values throughout the life of
the program. As
Qus:3a)
How do you declare a two dimensional array in C program?
b)
Write a C program to add two matrices.
Answer:
We
can use structures to describe the format of a number of related variables. For
example, in analyzing the marks obtained by a class of students, we may use a
template to describe student name and marks obtained in various subjects and
then declare all the students as structure variables. In such cases, we may
declare an array of structures, each element of the array
Qus:4
Write a short notes on “Structures in C”
Answer:
C supports a constructed data type known as structure, which is a method for
packing data of different types. A structure is a convenient tool for handling
a group of logically related data items
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, 08273413412
No comments:
Post a Comment