#include <stdio.h>
#include<stdlib.h>

int main() {
    // Structures
    // pointers  & DMA
    // arrays
    // Strings
    
    //Get a number from a user check whether it is
    //divisible by 4 and 6 
    
    //create a array and get elements from the user 
    //find the product of elements
    
    //To find length of String without using 
    //strlen function
    
    // pointers  -> Memory address
    
    
    // int a=10;
    // int b=20;
    // int *ptr1=&a;
    // int* ptr2=&b;
    // printf("%p\n",ptr1);
    // printf("%p\n",ptr2);
    
    // printf("%d",*ptr2); //Dereference
    
    // char ch='A';
    
    // char* ptr=&ch;
    // printf("%c",*ptr);
    
    // int arr[]={1,2,3,4};
    
    // printf("%p\n",arr); // Dereference
    
    // int *num=arr;
    // int i=0;
    // while(i<4){
    //     printf("%d ",*(num+i));
    //     i++;
    // }
    
    // Dynamic Memory Allocation
    
    //Malloc -> Memory Allocation
    //Calloc -> Continous Alloction -> Array
    //realloc -> Re Allocation -> 
    //free  -> Delete 
    
    // int a=10;
    
    // int b=1234567;
    
    int *a=(int *)malloc(sizeof(int),10);
    
    printf("%d",*a);
    
    
    
    
    
    
    
    // printf("Hello, World!");
    return 0;
}