there s a problem with scanf when reading a string to char array... if the length of input is greater than the allocated size of the character array..
somebody in the group posted..
fgets , sscanf and the below functions can be used instead of scanf.
junk = getchar();
} while (junk != '\n' && junk != EOF && junk != '\0');
I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This tutorial covers some basics of pointer, pointer arithmetic and function pointer.
What is a pointer:
A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…