@TheSlyest which one do u recommend for 2d ** or *[]?
ofstream myfile(filename);? does this open the file? I'm not sure
Question! char *s = (char *)malloc(100); memset(s, 0, 100); Should i have to free the mem? googled but google shows how to allocate mem.
What should i learn after learning data-structure in C? I dunno what to do now 😁 Point me pls
The program doesn't crash, but there is hidden mem leak. the sizeof literal_t * is fixed, it is always 8 on 64bit machine, but the sizeof literal_t is not fixed. It depends u...
typedef struct _node { int number; struct _node *next; } Node; Why does sizeof(Node); // 16 ?
Is that really possible? Like sleeping one thread for 3minutes while the other ones running?
Oh you are saying if it is the first node? got you!! Thanks anway So i have to add additional condition before while loop if(head->value == val) { Node *temp = head; he...
Guys how to know the size of multi d array in c. Look the below examples int array[2][3]; # 2 int array[2][3][4]; #3 In short term how to know how many dimensional it is. I...
help ! wchar_t str[] = L"Gimme a bottle of rum"; size_t len = wcslen(str); wmemset(str, '-', len); works well but if i convert str[] to *s, it doesn't work. Segmentation fau...
Bst?
Oh what does *(int *)ptr = 4 do? My question is typedef struct { int number; void (*manipulate)(void); } Obj; Manipulating number using the fptr without using the o...
How to manipulate struct fields in C without using the obj itself? Sorry mates may be it's stupid question for you. I googled it but I didn't find what I am looking for!!
Can u tell me what does ; indicate?
How to clear screen ? System.out.flush(); //doesn't work for me
Why do u do that way? remove ; and see the output You are not incrementing anything...so it goes to indefinite loop
Why ? I want to do like this When i pass something to method while invoking method , it to open SuperUserPassword.dat else it to open SystemUserPassword.dat
Why i didn't understand the question? Seems ur question contains some message
Please can you suggest me a good blog for C language? I have read most C books I am hungry !!
Sorry It is off-topic here but what does he mean by protect?