04-12-2011, 05:20 AM
Visual Programming (CS410)
Assignment # 1
Total marks = 20
Deadline Date = 15-04-2011
Please carefully read the following instructions before attempting the assignment.
Rules for Marking
It should be clear that your assignment would not get any credit if:
The assignment is submitted after due date.
The submitted assignment does not open or file is corrupt.
The assignment is copied. Note that strict action would be taken if the submitted assignment is copied from any other student. Both students will be punished severely.
1) You should concern recommended books to clarify your concepts as handouts are not sufficient.
2) You are supposed to submit your assignment in .doc format. Any other formats like scan images, PDF, Zip, rar, bmp, docx etc will not be accepted
3) You are advised to upload your assignment at least two days before Due date.
4) This assignment file comprises of Two (2) pages.
5) Do not send the CPP file of your code, but paste the complete code in same document (.DOC) file in which you will solve other questions.
Important Note:
Assignment comprises of 20 Marks. Note that no assignment will be accepted after due date via email in any case (whether it is the case of load shedding or emergency electric failure or internet malfunctioning etc.). Hence, refrain from uploading assignment in the last hour of the deadline, and try to upload Solutions at least 02 days before the deadline to avoid inconvenience later on.
Q1 [Marks: 2*5]
Explain the following instructions:
1) int *c[10];
2) char *(**n)(void);
3) float *(**r(void))[6];
4) short *(**v(void))(int);
5) long *(*(*(*z)(void))[7])(void);
Q2 [marks: 10]
Define Macro? Explain the following two macros with example.
1) __FILE__
2) __LINE__
Assignment # 1
Total marks = 20
Deadline Date = 15-04-2011
Please carefully read the following instructions before attempting the assignment.
Rules for Marking
It should be clear that your assignment would not get any credit if:
The assignment is submitted after due date.
The submitted assignment does not open or file is corrupt.
The assignment is copied. Note that strict action would be taken if the submitted assignment is copied from any other student. Both students will be punished severely.
1) You should concern recommended books to clarify your concepts as handouts are not sufficient.
2) You are supposed to submit your assignment in .doc format. Any other formats like scan images, PDF, Zip, rar, bmp, docx etc will not be accepted
3) You are advised to upload your assignment at least two days before Due date.
4) This assignment file comprises of Two (2) pages.
5) Do not send the CPP file of your code, but paste the complete code in same document (.DOC) file in which you will solve other questions.
Important Note:
Assignment comprises of 20 Marks. Note that no assignment will be accepted after due date via email in any case (whether it is the case of load shedding or emergency electric failure or internet malfunctioning etc.). Hence, refrain from uploading assignment in the last hour of the deadline, and try to upload Solutions at least 02 days before the deadline to avoid inconvenience later on.
Q1 [Marks: 2*5]
Explain the following instructions:
1) int *c[10];
2) char *(**n)(void);
3) float *(**r(void))[6];
4) short *(**v(void))(int);
5) long *(*(*(*z)(void))[7])(void);
Q2 [marks: 10]
Define Macro? Explain the following two macros with example.
1) __FILE__
2) __LINE__