Sajha.com Archives
Answers needed...

   Any volunteer who can send the answer to 20-Mar-02 SMSainju
     Sainju Ji can you please give your emai 20-Mar-02 hw
       Hi here is my email. sainju@apl.j 21-Mar-02 SMSainju
         1. Give any two reasons why you need com 21-Mar-02 Paakhe


Username Post
SMSainju Posted on 20-Mar-02 07:26 PM

Any volunteer who can send the answer to the questions (quiz) and programming exercise in section 3 of C/C++ on line classes?

please send me your answer and programming exercise in html format. thanks.

Please email me...

SMSainju
hw Posted on 20-Mar-02 09:00 PM

Sainju Ji
can you please give your email.address?
thanks
SMSainju Posted on 21-Mar-02 07:14 AM

Hi

here is my email.

sainju@apl.jhu.edu

SMSainju
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.