The only way to avoid using malloc during insertion of a new element in the array is to use an entry that was preallocated in some way. However...
I've already said why it doesn't work. It's because you are allocating ***ONE*** (1, uno, eine, un) array of char instead of an ARRAY OF ARRAYS...
The new code works because you've changed from char* to string, where the semantics are different. In your original code you were allocating one...
A char** is not quite the same as an array of char*, although it's the same level of indirection. What you need to do first is allocate an array...
Haha, that's a funny joke. RAC is not a language (it's a clustered database) and it's *certainly* not easy. The language you already know is...
I would just enclose the lot in a for loop: for (int quit=0; !quit; ) { printf("Choose an operation\n\n"); //... case 5: quit=1; break; //... }
c is a pointer to unsigned int and is not used by the function. t is a pointer to a function which takes an unsigned int and returns an unsigned...
Explain it? No, because it was clearly written by a complete idiot who has no regard for any kind of coding standards. Maybe it's an interview...
This would be compiler specific, so you'll have to check your compiler documentation. If you need to know the address of a function then you can...
Could you show the complete unedited output please?
Can you give a couple of examples of the input you give and the output you got? It's easier to see where a program is going wrong with some output.
I have no idea what you are talking about. Is this the question as it was given to you, or is it your interpretation of the question? If the...
I can help you write the code yourself, but I won't write it for you. In my opinion you should be graded on what you do, not what you can get...
Looks OK. Do you understand the requirements? Where are you stuck? What have you tried? As it's due in tomorrow I guess you just want someone...
Java is a different language and works differently. From the Java Language Specification on for loops:...
It doesn't throw an error because it is syntactically valid (although it's a terrible piece of programming). Informally the code for (A; B; C) {...
Sorry, I just re-read the question (because I'd remembered there was a 3 after posting the above). Where does it ask you to concatenate the...
Great! Did you run this code, and did it work? There is a small bug in that you don't test for string lengths, so if the combined string is too...
Don't know how I can explain it in simpler terms. The compiler errors are exactly what I expected. You are using the wrong characters: for a...
Sounds easy enough. Where are you stuck? Do you understand the requirements?
Separate names with a comma.