1. The preprocessor directive #define RING 1 tells the C preprocessor to replace each occurrence of the constant RING with 1.
2. The fourth element of an array named bob is bob[4]
3. All arrays with 10 elements require the same amount of memory.
4. A function with return type void always returns the value 0.
5. A function prototype tells the compiler nothing about the value that is returned by the function.
6. When an array is passed to a function, the address of the array is passed to the function and a copy of the elements is made for the function to manipulate.
These are all true/false questions for C programming?
Good luck doing your own homework!
(And neither of the two answerers below is 100% right, btw.)
Reply:1). true
2). false
3). true
4). false
5). true
6). false.
Ok now you won't learn anything from these true/false answers...
Reply:Why can't you do your own homework?
Reply:1 t
2 f
3 t
4 t
5 f
6 t
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment