Advertisement
Anik_Akash

Untitled

Feb 14th, 2021
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement