c programming session 16

3
Slide 1 of 3 Ver. 1.0 Programming in C In this session, you will do the practice questions of Chapter 7 and Chapter 8. Practice Questions

Upload: vivek-singh

Post on 16-Apr-2017

209 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: C programming session 16

Slide 1 of 3Ver. 1.0

Programming in C

In this session, you will do the practice questions of Chapter 7 and Chapter 8.

Practice Questions

Page 2: C programming session 16

Slide 2 of 3Ver. 1.0

Programming in CChapter 7

1. You are a part of a database software development team. The software you are developing is to be used to create and query on database files. You are assigned the task of writing a C program, which displays the structure of any database file, as given in the following file.

Microsoft Word Document

Page 3: C programming session 16

Slide 3 of 3Ver. 1.0

Programming in CChapter 8

1. Read a file after the first 10 characters and print it on screen. (Hint: Create a text file by the name of Example.txt and write 2-3 lines of content in it.)

2. Write your name 10 character after the end of the file. Also, use the exit() function to terminate the execution, if you are unable to write or open the file.