Just finished my first C course!! And have 2 little things i was wondering if someone could clarify.
1. Is a string defined as a nulled char array?
2. What's the difference for a main to be defined as "int main(void)" rather than "void main ()"?
Printable View
Just finished my first C course!! And have 2 little things i was wondering if someone could clarify.
1. Is a string defined as a nulled char array?
2. What's the difference for a main to be defined as "int main(void)" rather than "void main ()"?
1) If you mean "is a string a character array terminated by \0" then the answer is yes.
2) Cprogramming.com FAQ > main() / void main() / int main() / int main(void) / int main(int argc, char *argv[])
thanks that link was great