Professional Documents
Culture Documents
DSA Reg#51 Lab#3
DSA Reg#51 Lab#3
int max(int numl, int num2), //Declaring a function at the start of the program.
int result;
result = numl ,
else
result = num2;
return result;
Task 2:
Code:
#include <stdio.h>
int main 0
int *ip;
ip = &var;
}
Task 3:
Code:
#include <stdio.h>
struct Books {
char title[50];
subject[100]; int
book id;
};
int main()) {
Conclusion:
From this lab, I learned the basic programming algorithms in data structures
such as:
1. Functions
2. Pointers
3. Structures