Computer Programming Lab Manual for VTU


The academic syllabus has been changed for the year 2021-22 in VTU. Hence the lab on C programming has been reframed as “COMPUTER PROGRAMMING LABORATORY” (Sub Code: 21CPL17/27). Here I am publishing the first version of the lab manual which has solutions and sample output for all the lab programs. Gradually more documentation and algorithms are planned to be added. Anybody can contribute and reshare this manual as it is distributed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

This manual has been prepared using entirely Free Software. The document has been typeset using the LATEX document preparation system.

The latest version 1.0 of the manual is provided here


Click on the download button below to download the manualFor people who would like to contribute check here

All the programs have been compiled using the GNU GCC compiler version 9.4.0 and has been tested on Ubuntu 20.04.4 LTS (Focal Fossa)  64-bit Kernel Linux 5.15.0-43-generic

These programs can run on any GNU/Linux Operating system or any other OS with GCC installed.

GCC compiler can be obtained from here. A nice tutorial is provided here to get started with GCC.

If you find the command line difficult to handle and looking for an GUI based IDE to work with, the best choice is Code::Blocks. Code::Blocks uses the GNU GCC compiler collection. Two other good IDEs that you can try or Eclipse and Anjuta. I have provided links to this IDEs below you can click and download the necessary software and instructions to set up a working environment.

  1. Code::Blocks
  2. Anjuta DevStudio
  3. Eclipse IDE for C/C++

Looking for your feedback. Report if there are any errors in the manual in the comments section.

Prabodh C P is a faculty in the Dept of CSE SIT, Tumkur and also currently a Research Scholar pursuing PhD in IIT Hyderabad. He conducts online classes for C, C++, Python. For more info call +919392302100

Leave a Reply

Your email address will not be published. Required fields are marked *