Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
c allocate memory for struct
Peter Morris
Programming language:
Whatever
2021-06-20 10:12:40
0
Q:
c allocate memory for struct
Friendly Racoon
Code:
Whatever
2021-06-30 21:47:15
#include <stdlib.h> struct your_struct *x = malloc(sizeof(struct your_struct));
0
Tags
struct
Related
how to dynamically allocate array size in c
read memory access error c programming
WAP to read and print ‘n’ student details using structure and Dynamic Memory Allocation.
New to Communities?
Join the community