Introduction to Programming
Syllabus for Introduction to Programming is avaliable here.
Online assignments.
Sample linked list questions are here.
You must have your system ready with C-compiler (GCC) on Mageia 3 to be able to give lab exams.
For lab assignments and tests follow the rules below:
Make sure:
1. to NEVER use global/static variables and goto
statements until allowed specifically.
2. compiling as following (you may use C99 standard as well) results in no warnings/errors:
$ alias cc="cc -std=ansi -pedantic -Wall"
$ cc prog.c -o prog
$ ./prog
3. to implement suggestions in Coding Practices (v1.6).
4. to not abuse purpose of functions by using them to do avoidable scanf/printf stuff.
5. Each line of code with a violation of the rules above will have 4% penalty in marks.
The following code, for example, has all lines with at least one mistake though it does the task correctly. Hence it scores 64% instead of 100% marks.
#include<stdio.h>
main() {
int a=10, b=20;
printf("Hello World\n");
if( a == b)
{
printf("Equal %s\n","values");}
printf("Unequal %s\n","values");
return 0;}
Check allotted computers along with the list of volunteers for IIT and ECE-BME-SC.
Interesting links:
vi reference card for help related to using vi/vim
Basic commands for beginners
Almost final C99 specification (ISO/IEC 9899:TC3)
Stack Overflow for help related to programming
C-FAQ for C - Frequently Asked Questions
Usage of man command:
$ man -s3 printf
Sample codes
Attendance is here.
Please correspond (only) to bss.ta_at_iiita for corrections to attendance, etc.