Thanks, I get it now.
Type: Posts; User: tapti
Thanks, I get it now.
This problem was suggested to me by a friend.
The code is -
/* Returning a pointer to an out of scope variable */
# include <stdio.h>
int* fun(){
int k = 35;
How comfortable are you with data structures? If you are just starting out with programming, I'd suggest you go the easy (and limited) way of using an array of structures. I know, this will impose a...
Thank you everyone for your replies. It really helped me a lot.
Think about what happens when you try to store a value larger than the maximum value for that type. Like storing 256 in an unsigned char. Try to come up with something that will incorporate that...
remove source = source+buffer; and put in
strcat(source, buffer);
also put a semicolon at the end of close(sock);
It would help if you learn the C language first. '+' operators does arithmetic...
Thanks for all the replies. I did some reading from the net also, on static and dynamic libraries (they are .dll on windows and .so on linux, am I right?) I've understood the following, please...
Umm ... all I get is the commands, which I already know from college or from the man pages. I am looking for things like what exactly happens when I enter gcc -o program myprogram.c. I know object...
Hello everyone! I have been using C/C++ with an IDE for a year now, but I wish to learn the ins and outs of the entire compiling and linking process for a compiler... maybe gcc. Does anyone have a...