- #1
Bipolarity
- 776
- 2
C is a pretty tough language to grasp for me due to its static typing and rather confusing I/O.
I was hoping someone could answer the following questions for me, keeping in mind that I am fairly experienced in Java and Python but have almost no experience in C/C++ or any assembly language.
1) What is exactly the difference between printf and putchar? Printf seems to print everything you need it to print. So why on Earth would you need to use putchar? I hear that purchar send a single character to the output stream. What exactly is an output stream and how does it differ from what printf does?
2) Same for the above, except between scanf and getchar.
3) Can array sizes be changed after the array has been initialized? Or do you have to reinitialize the array?
4) Can arrays store values of different data types?
5) Can arrays store arrays?
Thanks!
BiP
I was hoping someone could answer the following questions for me, keeping in mind that I am fairly experienced in Java and Python but have almost no experience in C/C++ or any assembly language.
1) What is exactly the difference between printf and putchar? Printf seems to print everything you need it to print. So why on Earth would you need to use putchar? I hear that purchar send a single character to the output stream. What exactly is an output stream and how does it differ from what printf does?
2) Same for the above, except between scanf and getchar.
3) Can array sizes be changed after the array has been initialized? Or do you have to reinitialize the array?
4) Can arrays store values of different data types?
5) Can arrays store arrays?
Thanks!
BiP