When I am trying to execute my program Its getting error like this - sendip: malloc.c:4631: _int_malloc: Assertion `(unsigned long)(size)
.... finalize(char *hdrs, sendip_data *headers[], int index, sendip_data *data, sendip_data *pack) { ........
So I was bored today and decided to kick off the rust in my C skills, but I can\'t explain this: typedef struct Node
I am trying to create different messages to be transferred between two hosts. The program structure that I am following is to create a master struct where all the variables to be passed in different m
EDIT: I have changed my program according to suggestions people have made but I am unable to fix memory leaks. Also, I need to free them without using argc, so i need to somehow keep track of the arra
I\'m having a hard time referencing the memory inside the struct, I\'m not sure that my syntax is correct (although considering other posts I think I\'m fine).
What will be the output of the following program? int *call(); void main() { int *ptr = call(); printf(\"%d : %u\",*ptr,ptr);
My C++ syntax is quite rusty.This is my code: /* Add hdr of length length to the msg. */ void Message::msgAddHdr(char *hdr, size_t length)
The const qualifier on a method supposed to protect the data member from overwriting by mistake. If you have a data member which is a pointer then only the pointer is defended, the pointed value is no
Let\'s say I have two different classes, both represent 2D coordinate data in the same internal way like the following: