I have been working on this problem for a while now: basically I need to put the for loop in a function so I can call for it, but I don't how to to ma ...
I have been working on this problem for a while now: basically I need to put the for loop in a function so I can call for it, but I don't how to to ma ...
I have a little problem which occurs after trying to execute function delete_all(). Any idea why Visual Studio is throwing me an error: Invalid ad ...
I am trying to build a program which takes user input of employee details and prints it. I have separate functions for both of them. Structure is as ...
Let's suppose that I have some f : A -> B, a : A, b : B. I want new function, that is almost a copy of f, but it should produce b for an argument a ...
I'm trying to build a function that checks whether a particular pointer value is stored in a given array. I'm trying to make the function type-agnosti ...
I have written the code already, and its pretty much finished, but while testing it, it would sometimes faulter(very rarely), and I cant quite figure ...
I wanted to ask why the first code functions and the second is not? Both are recursions and should calculate the binomial coefficient when going up th ...
im trying to enter 4 or 5 nodes in it and the use lilprint to print some info about the linked list. when i enter some nodes and then delete the fir ...
I am trying to reverse this C-string and I thought I did it correct but the string remains the same when it passes through the function. Expected o ...
If I declare i variable in fibonacci function (definition function) it prints infinite loop of garbage values instead I used static i variable then ...
Edit: I think I need to be more precise, the code itself is good but I need to modify it not to have a block with more than 3 branches. For instance, ...
I’m learning C, dealing with strings and pointers. An exercise calls for deleting all leading characters (‘X’ in this case) before a string. The calle ...
My steps: Pushing int value = 1 Pushing int value = 2 Trying to pop_back() Last node mLast is nullptr now The first node's next pointer st ...
I'm needing to add field feature to my program, so my idea is to create a linked structure with 2 variables fieldName and fieldValue but my code is ...
I have written a basic bubble sorting program that uses given input from a predetermined array or characters, but I want to change it so I can sort st ...
I have got this code reference from a website and practicing with this. When I am trying to working with malloc() function then how we getting the val ...
What is wrong with my code for reversing a linked list? I was trying to solve a standard problem of reversing a link list. So i tried implementing ...
this program is not completely ready yet, so not all funcionalities are coded. However, I am facing a problem when it comes to the very basic functio ...
The following code takes an array of integers and create an array with the mobile means (i.e. the value in i-th place is the mean of the last n elemen ...
I need to check between two arrays if they are reversed, e.g. A[3] = {1, 2, 3} and B[3] = {3, 2, 1} Returning zero if A is not the reverse of B of a ...