Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- // Function
- // Function declaration
- // return_type functionName(parameter) {
- // }
- // void hello() {
- // printf("Hello world\n");
- // }
- // int main() {
- // hello();
- // printf("Hi everybody\n");
- // }
- // Global variable and Local variable
- // int result = 0;
- // Void kono value return kore na!
- // void sum(int m, int n) {
- // result = m + n;
- // }
- // int main() {
- // int a, b;
- // printf("Please enter two integer numbers: ");
- // scanf("%d %d", &a, &b);
- // sum(a, b);
- // printf("%d\n", result);
- // return 0;
- // }
- // Pointer
- // int main() {
- // int arr[6] = {1, 2, 3, 4, 5, 6};
- // int *p;
- // p = &arr[0];
- // int i;
- // // for (i = 0; i < 6; i++) {
- // // printf("%d ", arr[i]);
- // // }
- // // printf("\n");
- // for (i = 0; i < 6; i++) {
- // printf("%d ", *p + i);
- // }
- // printf("\n");
- // }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement