Put words in your code mate
Go to the first column of the first row. Check if the element there exist.
Print that element.
Go to the second column of the second row. Check if that element...
Type: Posts; User: ardavirus
Put words in your code mate
Go to the first column of the first row. Check if the element there exist.
Print that element.
Go to the second column of the second row. Check if that element...
exus69, Try to write with words how would you print array's elements in the order you want. Something like....
Go to the first row (i = 0) , check if that row exists (i < max rows).
Go to...
In fact, if it was clear to me, I wouldn't ask, but as you can see after I read what Salem provided me, I was able to answer it alone.
With no offensive tone intended, did you bother to read...
printf("%.1lf,", score[5]);
After some reading I was able to clear a few of my issues with inline functions:
Yes it has external linkage, cause inline functions are like any other function as linkage is considered.
The...
Cheers Salem, going to study this right away.
Hello again. I have read about inline functions but the concept about how to define and declare them in multiple files is still a little foggy, so I need your help to confirm, what I think, I have...
Thank you whiteflags, you point out, the same error anduril suggested and in fact after I changed to malloc(word_len + 1) the crashing is not occuring anymore. But my confusion remains. I mean my...
Thank you anduril
About the pointer arithmetic usage, I am writing this way, just to start feeling comfortable with pointer arithmetic, sorry if the code was a bit cloudy.
Now about my error, I...
Hello again, I struggled for a few hours with this one but I can't seem to find what I am looking for, so thank you in advance for any help. I am trying to do the following exercise:
Write a...
When float variable is FLT_MAX print +INF.
Thank you iMalc and Tater.
Now that I know that the compiler will generate the same code, I will take Tater's advice and I will use the if(pointer == NULL) form, reserving the "short" one for the...
Thank you for the clarification anduril.
I had no idea I was stepping in religious war grounds. I know that many of my questions seem stupid and unimportant, but since I am in the early stages of...
Hello again. I am back with a new (stupid?) question and I thank you in advance for your time to read this and eventually help me.
Let's say we have a simple structure:
struct node{
int value;...
Thank you very much Salem. It was very stupid of me to forget such thing (and not be able to figure it out). I truly spend 2 hours experimenting and watching at the code (with dull eyes) before...
Hello again, in one of my exercises where I have to create a stack using a linked list, I came by a question I can't wrap my mind around and answer it. I guess I need a little mental push from you...
I stand corrected, thanks for pointing that out tabstop. I have to remind myself that google is not telling the truth all the time. ;)
Also known as greatest common factor or greater common denominator or highest common factor or greatest common measure.
Thank you for pointing out that Tater, I just finished study the links Andrew posted (thank you Andrew) and now I can see how wrong was my statement about ignoring main arguments in Anthony's code.
...
Thank you tabstop, I highlighted the wrong statement in my post and prompted to look for your explanation. Cheers
I think, I figured out your program and indeed is an excellent paradigm.
First I am going to ignore the parameters in the main function, just because I couldn't figure out a purpose. :cool:
...
These kind of metaphors (void pointer = water, Calling malloc() = buying a bushel basket) are more helpful for a novice like me, than you can possible imagine. Thank you !!!
@antonyd
Thank you for the "dirty details", they are above my level of course, but it is good to know about them, for I will know what to search, in case I might need such "details" in a far future,...
With my luck worse things could happen! ;)
This is really a fine example :)
yes, l must not forget to free(bushel basket);
[/QUOTE]You are right I expressed that one wrong, it should compile fine, plus I am always expecting...