Graded Assignment 6
Graded Assignment 6
Instructions:
Lab Assignment 6
We use the following command in the terminal for compiling our filename.c source file
After compilation executable is generated and we run the generated executable using the
below command.
$ ./filename
Result: 4.50
Result: 10
Practice Problems (Not for Grades, but Recommended)
Modify P3: swap program so that it swaps two numbers without using a temporary variable
using pointers.
Submission Guidelines
1. Submit your solutions for Q1 and Q2 via Blackboard.
2. Use meaningful function names and include comments to explain your code.
3. Practice problems are for self-learning and do not require submission.
Grading Policy:-
1. No marks for incomplete programs.
2. No marks for a program that does not compile.
3. No marks for a program that does not give correct output for any input.
4. Half marks for a program which gives correct output only for a specific set of inputs, but not
generally for all inputs.
5. Full marks for a program that gives correct output for any input.
- All submissions are subject to plagiarism checks. Any case of plagiarism will be dealt
with severely.