Posts by J. Ferreira • 177 points
4 posts
-
5
votes1
answer7465
viewsQ: How to undo the last push done on Github?
I’m trying to learn Git and in the middle of my tests I made a push incorrect for Github. I did the reset of the latter commit and tried to give a push again thinking that it would remove the commit…
-
4
votes2
answers196
viewsQ: Do ( Casting ) of the return of Malloc(), Calloc() and Realloc() - C
According to the discussion Do I cast the result of malloc?, in C is not recommended or correct to cast Malloc() return. This also applies to Calloc() and Realloc functions()? Taking advantage, the…
-
1
votes2
answers267
viewsQ: When to actually use malloc() and/or calloc()?
My doubt is due to the fact that I am learning from banal examples (in my view), as in: int *ptr; ptr = malloc(sizeof(int)); It seems to me useless to allocate a space of an integer to a pointer of…
-
7
votes2
answers3921
viewsQ: puts() and printf(), when and which to use?
Data input requests are usually preceded by text indicative of what you wish to receive and usually do not have data to be formatted. If variable data are not being presented in the request text,…