| Paakhe |
Posted
on 21-Mar-02 08:51 AM
1. Give any two reasons why you need comments in C programming. 2. What do the folloing (\n, \t, \a ) do in C programming? 3. What is the one function you must have in C programming? 4. What is a block? 5. What is an argument? 6. How do you write a comment? 7. What does a compiler do? 8. Is filename.txt is a valid name for c source file? 1. To make code readable. To let code-reader get the idea what program actually is performing 2. \n - inserts carriage return, and line feed characters (to make the program portable you actually needs to use \r\n.) 3. "main" function. 4. (I donot know how to define it) 5. data explicitly passed to a function. Explicitly we can take global variables as arguments. 6. either use // to make one line comment or use /* */ combination to multi-line comment. 7. compiler checks for the simple errors, like typing errors, lexical syntax error, and if everything is correct, changes the program to object-code, that is machine dependent code. 8. No, 'filename.txt' is not a valid C-source file.
|