Anda di halaman 1dari 2

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY

(An Autonomous Institution Under Visvesvaraya Technological University, Belgaum)

YELAHANKA, BANGALORE

Department of Computer Science and Engineering


MID S

MID-SEM EXAMINATION-IIIX
A

Semester: CCP
Subject and Code:10CCP23 comp
Faculty : Jagadevi Kalshetty

Date:08/07/14
Time:10:00-11:00
Max Marks: 30
Answer any Two Full Questions
SATION-I

Q.
No

1a

Questions

Develop a program in C to swap the contents of two variables


using pointers..

b
Explain the concept dynamic memory allocation with example.

2a

Write a c program that accepts the details such as student roll


number, student name and marks of 3 subjects of n students
and prints their details along with total marks using structures
Define file. Bring out in detail about the process of opening a file
with an example program.

Marks

Co-po

(CO5:b,c
)

7
(CO5:b,c
)

8
(CO5:b,c
)
7

(CO5:b,c
)
3a

Give the syntax of opening and closing a file along with the
different modes in which it can be opened.

Differentiate between structure and unions with examples.

6
(CO5:b,c
)

(CO5:b,c
)