Anik_Akash

Untitled

Feb 14th, 2021
416
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. typedef struct Info{
  4. int age;
  5.  
  6. }info;
  7.  
  8. int main(){
  9.     info *ptr;
  10.     ptr =(info*)malloc(sizeof(info));
  11.     ptr-> age =33;
  12.     printf("%d\n",ptr-> age);
  13.     return 0;
  14. }
  15.  
RAW Paste Data