Professional Documents
Culture Documents
Fourth Semester Department of Electrical Engineering
Fourth Semester Department of Electrical Engineering
Research Faisalabad
return result;
}
Task#2
Write a code to assign a pointer.
Code:
#include <stdio.h>
int main () {
int var = 20;
int *ip;
ip = &var;
}
Task#3
Write a code to define a structure.
Code:
#include <stdio.h>
struct Books {
char title[50];
char author[50];
char subject[100];
int book_id;
};
int main( ) {
Conclusion:
In this lab, I came to the basic programming algorithms in data structures
such as:
1. Functions
2. Pointers
3. Structures